实验 5

 

 

PC

192.168.10.1、192.168.10.2

192.168.20.1、192.168.20.2

192.168.10.3、192.168.10.4

192.168.20.3、192.168.20.4

 

S3700-1:
system-view

vlan batch 10 20
int e0/0/1
port link-type access 
port default vlan 10

int 0/0/2
port link-type access 
port default vlan 10

int e0/0/3
port link-type access 
port default vlan 20

int e0/0/4
port link-type access 
port default vlan 20

interface g0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20

 

S3700-2:
system-view

vlan batch 30 40
int e0/0/1
port link-type access 
port default vlan 30

int e0/0/2
port link-type access 
port default vlan 30

int e0/0/3
port link-type access 
port default vlan 40

int e0/0/4
port link-type access 
port default vlan 40
int g0/0/2
port link-type trunk
port trunk allow-pass vlan 30 40

 

S5700
system-view
vlan batch 30 40

Int g0/0/1
port link-type trunk
port trunk allow-pass vlan 30  40

interface vlanif 30
ip address 192.168.30.254 24

interface vlanif 40
ip address 192.168.40.254 24

int g0/0/24
interface vlanif 1
ip address 172.16.1.2 24

ip route-static 0.0.0.0 0.0.0.0 172.16.1.1

 

AR2220:
system-view

Int g0/0/0.10
dot1q termination vid 10
ip address 192.168.10.254 24
arp broadcast enable

Int g0/0/0.20
dot1q termination vid 20
ip address 192.168.20.254 24
arp broadcast enable

Int g0/0/1
ip address 172.16.1.1 24
ip route-static 0.0.0.0 0.0.0.0 172.16.1.2

posted @ 2019-11-27 14:29  X-Lee-X  阅读(103)  评论(0)    收藏  举报