IP实验笔记

青春壹個敷衍的年華 提交于 2019-12-05 20:28:36

 

代码:

LSW1

Vlan 10

Interface ethernet 0/0/1

Port link-type access

Port default vlan 10

Interface ethernet 0/0/2

Port link-type access

Port default vlan 10

Vlan 20

Interface ethernet 0/0/3

Port link-type access

Port default vlan 20

Interface ethernet 0/0/4

Port link-type access

Port default vlan 20

Interface GigabitEther 0/0/2

Port link-type trunk

Port trunk allow-pass vlan 10 20

 

 

LSW2

Vlan 10

Interface ethernet 0/0/1

Port link-type access

Port default vlan 10

Interface ethernet 0/0/2

Port link-type access

Port default vlan 10

Vlan 20

Interface ethernet 0/0/3

Port link-type access

Port default vlan 20

Interface ethernet 0/0/4

Port link-type access

Port default vlan 20

Internet GigabitEther 0/0/2

Port link-type trunk

Port trunk allow-pass vlan 10 20

 

 

LSW4

Interface GigabitEthernet 0/0/1

Port link-type trunk

Port trunk allow-pass vlan 10 20

Interface GigabitEthernet 0/0/2

Port link-type trunk

Port trunk allow-pass vlan 10 20

Int vlanif 10

Ip address 192.168.10.254(注释:这里写vlan 10的网关) 255.255.255.0

Vlan 20

Int vlanif 20

Ip address 192.168.20.254.( 这里写vlan 20的网关)24

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!