solaris10的端口聚合一例
网络拓扑
/ ge-0/0/11 <=============> e1000g1 (solaris 10 1Giga NIC)
VLAN sn < > aggr10
ge-0/0/13 <=============> e1000g2 (solaris 10 1Giga NIC) /
ge-0/0/11和ge-0/0/13在交换机端绑定成为一个ae0的汇聚接口;
e1000g1和e1000g2在solaris主机端绑定成一个aggr10的trunk接口.
root@s10a# /usr/X11/bin/scanpci
- pci bus 0x0000 cardnum 0x03 function 0x00: vendor 0x8086 device 0x100e <========e1000g0
- Intel Corporation 82540EM Gigabit Ethernet Controller
- pci bus 0x0000 cardnum 0x08 function 0x00: vendor 0x8086 device 0x100e <========e1000g1
- Intel Corporation 82540EM Gigabit Ethernet Controller
- pci bus 0x0000 cardnum 0x09 function 0x00: vendor 0x8086 device 0x100e <========e1000g2
- Intel Corporation 82540EM Gigabit Ethernet Controller
复制代码所有的做aggregated ethernet网卡需要使用相同型号,相同的传输介质
root@s10a# ifconfig -a
- lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
- inet 127.0.0.1 netmask ff000000
- e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
- inet 192.168.186.228 netmask ffffff00 broadcast 192.168.186.255
- ether 8:0:27:80:20:1a
复制代码root@s10a# dladm show-aggr
root@s10a# dladm show-dev
- e1000g0 link: up speed: 1000 Mbps duplex: full
- e1000g1 link: unknown speed: 1000 Mbps duplex: full
- e1000g2 link: unknown speed: 1000 Mbps duplex: full
复制代码root@s10a# dladm show-link
- e1000g0 type: non-vlan mtu: 1500 device: e1000g0
- e1000g1 type: non-vlan mtu: 1500 device: e1000g1
- e1000g2 type: non-vlan mtu: 1500 device: e1000g2
复制代码root@s10a# dladm create-aggr -d e1000g1 -d e1000g2 10
root@s10a# dladm show-aggr
- key: 10 (0x000a) policy: L4 address: 8:0:27:66:2f:d7 (auto)
- device address speed duplex link state
- e1000g1 8:0:27:66:2f:d7 1000 Mbps full unknown standby
- e1000g2 8:0:27:92:33:42 1000 Mbps full unknown standby
复制代码root@s10a# dladm show-dev
- e1000g0 link: up speed: 1000 Mbps duplex: full
- e1000g1 link: unknown speed: 1000 Mbps duplex: full
- e1000g2 link: unknown speed: 1000 Mbps duplex: full
复制代码root@s10a# dladm show-link
- e1000g0 type: non-vlan mtu: 1500 device: e1000g0
- e1000g1 type: non-vlan mtu: 1500 device: e1000g1
- e1000g2 type: non-vlan mtu: 1500 device: e1000g2
- aggr10 type: non-vlan mtu: 1500 aggregation: key 10
复制代码root@s10a# ifconfig aggr10 plumb 1.1.1.66/24 up
root@s10a# dladm show-aggr
- key: 1 (0x0001) policy: L4 address: 8:0:27:66:2f:d7 (auto)
- device address speed duplex link state
- e1000g1 8:0:27:66:2f:d7 1000 Mbps full up attached
- e1000g2 8:0:27:92:33:42 1000 Mbps full up attached
复制代码如果aggr10没有跟交换机协商成功,那么这个state可能是unknown standy.
root@s10a# dladm show-dev
- e1000g0 link: up speed: 1000 Mbps duplex: full
- e1000g1 link: up speed: 1000 Mbps duplex: full
- e1000g2 link: up speed: 1000 Mbps duplex: full
复制代码root@s10a# dladm show-link
- e1000g0 type: non-vlan mtu: 1500 device: e1000g0
- e1000g1 type: non-vlan mtu: 1500 device: e1000g1
- e1000g2 type: non-vlan mtu: 1500 device: e1000g2
- aggr10 type: non-vlan mtu: 1500 aggregation: key 10
复制代码root@s10a# dladm show-aggr -s
- key:10 ipackets rbytes opackets obytes %ipkts %opkts
- Total 612 87894 276 33953
- e1000g1 612 87894 264 33053 100.0 95.7
- e1000g2 0 0 12 900 0.0 4.3
复制代码root@s10a#
如果流量都分布在一个物理网卡上,那么可能是交换机端参数设置问题。
Juniper交换机端的配置如下:
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 192.168.186.66
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 aggregated-ether-options lacp active
set interfaces ae0 unit 0 family ethernet-switching
set interfaces me0 unit 0 family inet address 192.168.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 192.168.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
下面就是跑应用来测试了。抛砖引玉~
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
好文章。
前些时候做过solaris走H3C防火墙的工作,就是有些端口搞不清楚,导致能登陆过去,但是非常慢 ,可能有些端口还是没搞清楚吧。 留个记号慢慢研究
支持楼主~这个还真没配置过,问下如果要配置网口聚合功能,必须是交换机与系统都要进行配置才行?只做一端无效吗?
思路清晰
好文,收藏下来
好文 收藏,
地板支持,不错不错
板凳