对LSW3:
Interface vlanif 10
Undo ip address(删除ip地址)
quit
Interface vlanif 20
Undo ip address
quit
Interface GigabitEthernet 0/0/24
Port link-type trunk
Port trunk allow-pass vlan 10 20
对路由器R:
Interface GigabitEthernet 0/0/0.10
Dot1q termination vid 10
Ip address 192.168.10.254 24
Arp broadcast enable
Interface GigabitEthernet 0/0/0.20
Dot1q termination vid 20
Ip address 192.168.20.254 24
Arp broadcast enable
注:display cu(查看配置)
Display ip interface brief(查看配置)