- PC1 分别属于VLAN 100;PC2属于VLAN200。
- VLAN 100 的网络地址为201.201.学号.0 /24;
VLAN 200 的网络地址为 202.202.学号.0/24。 - PC3 所在的网段地址为 203.203.学号.0/24
PC1的IP地址为201.201.学号.2;
PC2的IP地址为202.202.学号.2;
PC3的IP地址为203.203.学号.2。
对路由器和交换机配置后,实现PC0、PC9、PC10之间能够互通。
全视频操作(点击此处跳转至Bilibili)
eNsp静态路由程序下载
IP:
PC1:
201.201.16.2
255.255.255.0
201.201.16.1
PC2:
202.202.16.2
255.255.255.0
202.202.16.1
PC3
203.203.16.2
255.255.255.0
203.203.16.1
10.10.10.0/24
接口设置:
PC1:S5700 0/0/1
PC2:S5700 0/0/11
PC3:AR2220 0/0/2
S5700:AR2220 0/0/1
S5700
sys
vlan batch 100 200
interface GigabitEtherent 0/0/1
port link-type access
port default vlan 100
q
interface GigabitEtherent 0/0/11
port link-type access
port default vlan 200
q
interface VLANif 100
ip address 201.201.学号.1 255.255.255.0
q
interface VLANif 200
ip address 202.202.学号.1 255.255.255.0
q
interface GigabitEtherent 0/0/24
port link-type trunk
port trunk allow-pass vlan all
q
interface VLANif 1
ip address 10.10.10.1 255.255.255.0
q
ip route-static 203.203.16.0 255.255.255.0 10.10.10.2
q
save
y
AR2220
sys
interface GigabitEtherent 0/0/1
ip address 10.10.10.2 255.255.255.0
q
interface GigabitEtherent 0/0/2
ip address 203.203.16.1 255.255.255.0
q
ip route-static 202.202.16.0 255.255.255.0 10.10.10.1
ip route-static 201.201.16.0 255.255.255.0 10.10.10.1
q
save
y