sys
sysname SW1
vlan2
quit
vlan3
quit
int vlan 2
ip add 10.213.1.2 255.255.255.0
vrrp vrid 2 virtual-ip 10.213.1.1
vrrp vrid 2 priority 120
vrrp vrid 2 preempt-mode delay 120
quit
int vlan 3
ip add 10.213.2.2 255.255.255.0
vrrp vrid 3 virtual-ip 10.213.2.1
quit
int g1/0/1
port link-type access
port access vlan 2
quit
int bridge-aggregation 1
port link-type trunk
port trunk permit vlan 1 to 3
quit
int g1/0/2
port link-type trunk
port trunk permit vlan 1 to 3
port link-aggregation group 1
quit
int g1/0/3
port link-type trunk
port trunk permit vlan 1 to 3
port link-aggregation group 1
quit
telnet server enable
user-interface vty 0 4
authentication-mode password
set authentication password simple abc123
3.2.2 SW2配置
sys
sysname SW2
vlan2
quit
vlan3
quit
int vlan 2
ip add 10.213.1.3 255.255.255.0
vrrp vrid 2 virtual-ip 10.213.1.1
quit
int vlan 3
ip add 10.213.2.3 255.255.255.0
vrrp vrid 3 virtual-ip 10.213.2.1
vrrp vrid 3 priority 120
vrrp vrid 3 preempt-mode delay 120
quit
int g1/0/1
port link-type access
port access vlan 3
quit
int bridge-aggregation 1
port link-type trunk
port trunk permit vlan 1 to 3
quit
int g1/0/2
port link-type trunk
port trunk permit vlan 1 to 3
port link-aggregation group 1
quit
int g1/0/3
port link-type trunk
port trunk permit vlan 1 to 3
port link-aggregation group 1
quit
(从SW1的任何一个口都可以登录)
telnet 10.213.2.2
telnet 10.213.2.2
4. 查看相关配置
dis vrrp
dis vrrp verbose(详细版)
undo terminal monitor(停止告警信息)
dis int brief(可查看端口汇聚的情况)
dis int bridge-aggregation(可查看端口汇聚详细情况)