SW1 配置
<Huawei>system
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname sw1
[sw1]vlan batch 10 20
[sw1-vlan10]quit
[sw1]interface g0/0/2
[sw1-GigabitEthernet0/0/2]port link-type tr
[sw1-GigabitEthernet0/0/2]port link-type trunk
[sw1-GigabitEthernet0/0/2]port trunk allow-pass vlan 10
[sw1-GigabitEthernet0/0/2]quit
[sw1]interface g0/0/1
[sw1-GigabitEthernet0/0/1]port link-type access
[sw1-GigabitEthernet0/0/1]port defaul
[sw1-GigabitEthernet0/0/1]port default vlan 20
[sw1-GigabitEthernet0/0/1]quit
[sw1]interface vlanif 20
[sw1-Vlanif20]ip address 192.168.100.1 24
[sw1-Vlanif20]undo shutdown
Info: Interface Vlanif20 is not shutdown.
[sw1-Vlanif20]quit
[sw1]interface vlanif 10
[sw1-Vlanif10]ip address 192.168.10.253 24
[sw1-Vlanif10]undo shutdown
Info: Interface Vlanif10 is not shutdown.
[sw1-Vlanif10]vrrp
[sw1-Vlanif10]vrrp vrid 1 virtual-ip 192.168.10.254
[sw1-Vlanif10]vrrp vrid 1 priority 200
[sw1-Vlanif10]quit
评论0
最新资源