Chinaunix首页 | 论坛 | 博客
  • 博客访问: 447157
  • 博文数量: 21
  • 博客积分: 6636
  • 博客等级: 准将
  • 技术积分: 1006
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-08 11:10
文章分类
文章存档

2011年(11)

2010年(4)

2009年(4)

2008年(2)

分类:

2011-02-15 17:54:01

  The current physical topology as below:
  ge-0/0/11  <========> linux eth2  (direct link)
  ge-0/0/13  <========> linux eth3  (direct link)
  ae0 is aggragated using ge-0/0/11 and ge-0/0/13 in the EX side
  bond0 is aggrated using eth2 and eth3 in linux box with fixed ip address 1.1.1.99.
 
-------------------------------------------------------------------------
root> show interfaces ae0 statistics
Physical interface: ae0, Enabled, Physical link is Up
  Interface index: 129, SNMP ifIndex: 565
  Link-level type: Ethernet, MTU: 1514, Speed: 2Gbps, BPDU Error: None,
  MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled,
  Flow control: Disabled, Minimum links needed: 1, Minimum bandwidth needed: 0
  Device flags   : Present Running
  Interface flags: SNMP-Traps Internal: 0x0
  Current address: 00:1f:12:31:b3:40, Hardware address: 00:1f:12:31:b3:40
  Last flapped   : 2011-02-12 13:08:05 CST (3d 03:47 ago)
  Statistics last cleared: Never
  Input rate     : 3072 bps (3 pps)
  Output rate    : 14160 bps (3 pps)
  Input errors: 0, Output errors: 0
 
  Logical interface ae0.0 (Index 66) (SNMP ifIndex 258)
    Flags: SNMP-Traps 0x0 Encapsulation: ENET2
    Statistics        Packets        pps         Bytes          bps
    Bundle:
        Input :             0          0             0            0
        Output:        145387          0      15554703            0
    Protocol eth-switch
      Flags: Is-Primary
 
{master:0}
root> show interfaces ae0 detail
Physical interface: ae0, Enabled, Physical link is Up
  Interface index: 129, SNMP ifIndex: 565, Generation: 132
  Link-level type: Ethernet, MTU: 1514, Speed: 2Gbps, BPDU Error: None,
  MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled,
  Flow control: Disabled, Minimum links needed: 1, Minimum bandwidth needed: 0
  Device flags   : Present Running
  Interface flags: SNMP-Traps Internal: 0x0
  Current address: 00:1f:12:31:b3:40, Hardware address: 00:1f:12:31:b3:40
  Last flapped   : 2011-02-12 13:08:05 CST (3d 03:48 ago)
  Statistics last cleared: Never
  Traffic statistics:
   Input  bytes  :             71839846                 2040 bps
   Output bytes  :            505828863                14144 bps
   Input  packets:               565510                    1 pps
   Output packets:              1035735                    1 pps
   IPv6 transit statistics:
    Input  bytes  :                   0
    Output bytes  :                   0
    Input  packets:                   0
    Output packets:                   0
 
  Logical interface ae0.0 (Index 66) (SNMP ifIndex 258) (Generation 131)
    Flags: SNMP-Traps 0x0 Encapsulation: ENET2
    Statistics        Packets        pps         Bytes          bps
    Bundle:
        Input :             0          0             0            0
        Output:        145393          0      15555345            0
    LACP info:        Role     System             System      Port    Port  Port
                             priority          identifier  priority  number   key
      ge-0/0/11.0    Actor        127  00:1f:12:31:b3:40       127       1     1
      ge-0/0/11.0  Partner      65535  00:08:9b:bc:98:d1       255       1    17
      ge-0/0/13.0    Actor        127  00:1f:12:31:b3:40       127       2     1
      ge-0/0/13.0  Partner      65535  00:08:9b:bc:98:d1       255       2    17
    LACP Statistics:       LACP Rx     LACP Tx   Unknown Rx   Illegal Rx
      ge-0/0/11.0           272884      272483            0            0
      ge-0/0/13.0           272884      272482            0            0
    Marker Statistics:   Marker Rx     Resp Tx   Unknown Rx   Illegal Rx
      ge-0/0/11.0                0           0            0            0
      ge-0/0/13.0                0           0            0            0
    Protocol eth-switch, Generation: 145, Route table: 0
      Flags: Is-Primary
 
{master:0}
root>
-------------------------------------------------------------------------
 
root> show vlans
Name           Tag     Interfaces
default      
                       ge-0/0/12.0
sn             100   
                       ae0.0*, ge-0/0/8.0*, ge-0/0/9.0*, ge-0/0/10.0*
-------------------------------------------------------------------------
 
 
[root@centos55 ~]# ip addr
1: lo: mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:08:9b:bc:98:cf brd ff:ff:ff:ff:ff:ff
    inet 172.27.186.176/24 brd 172.27.186.255 scope global eth0
    inet6 fe80::208:9bff:febc:98cf/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: mtu 1500 qdisc noop qlen 1000
    link/ether 00:08:9b:bc:98:d0 brd ff:ff:ff:ff:ff:ff
4: eth2: mtu 1500 qdisc pfifo_fast master bond0 qlen 1000
    link/ether 00:08:9b:bc:98:d1 brd ff:ff:ff:ff:ff:ff
5: eth3: mtu 1500 qdisc pfifo_fast master bond0 qlen 1000
    link/ether 00:08:9b:bc:98:d1 brd ff:ff:ff:ff:ff:ff
6: bond0: mtu 1500 qdisc noqueue
    link/ether 00:08:9b:bc:98:d1 brd ff:ff:ff:ff:ff:ff
    inet 1.1.1.99/24 brd 1.1.1.255 scope global bond0
    inet6 fe80::208:9bff:febc:98d1/64 scope link
       valid_lft forever preferred_lft forever
7: vboxnet0: mtu 1500 qdisc noop qlen 1000
    link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
 
 
 
Here is good linux example for LACP.
 
 
-------------------------------------------------------------------------
Here is the linux configuration:
#/etc/sysconfig/network-scripts/ifcfg-eth2
 
DEVICE=eth2
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond0
SLAVE=yes
#/etc/sysconfig/network-scripts/ifcfg-eth3
 
DEVICE=eth3
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond0
SLAVE=yes
#/etc/sysconfig/network-scripts/ifcfg-bond0
 
DEVICE=bond0
IPADDR=1.1.1.99
NETMASK=255.255.255.0
BROADCAST=1.1.1.255
GATEWAY=1.1.1.1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
 
-------------------------------------------------------------------------
Here is the EX switch configuration:
set version 10.4R2.6
set system time-zone Asia/Shanghai
set system root-authentication encrypted-password "$1$c1nFpO2y$nTFfjw.JJYs10bfQUkcHa/"
set system services ssh root-login allow
set system ntp server 172.27.186.70
set chassis aggregated-devices ethernet device-count 8
set interfaces ge-0/0/8 unit 0 family ethernet-switching
set interfaces ge-0/0/9 unit 0 family ethernet-switching
set interfaces ge-0/0/10 unit 0 family ethernet-switching
set interfaces ge-0/0/11 ether-options 802.3ad ae0
set interfaces ge-0/0/12 unit 0 family ethernet-switching
set interfaces ge-0/0/13 ether-options 802.3ad ae0
set interfaces ae0 traceoptions flag all
set interfaces ae0 aggregated-ether-options lacp active
set interfaces ae0 unit 0 family ethernet-switching
set interfaces me0 unit 0 family inet address 172.27.11.133/25
set interfaces vlan unit 100 family inet address 1.1.1.1/24
set routing-options static route 0.0.0.0/0 next-hop 172.27.11.129
set protocols igmp-snooping vlan all
set protocols rstp
set protocols lldp-med interface all
set ethernet-switching-options storm-control interface all
set vlans sn vlan-id 100
set vlans sn interface ge-0/0/8.0
set vlans sn interface ge-0/0/9.0
set vlans sn interface ae0.0
set vlans sn interface ge-0/0/10.0     
set vlans sn l3-interface vlan.100

阅读(1490) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~