文章介绍:使用eNSP部署一台交换机,一台路由器,俩台PC,演练单臂路由实验,并完成子接口配置,完成跨网段、跨VLAN的三层互通。
一、eNSP下载
二、实验拓扑
三、设备配置
3.1、拓扑一
3.1.1、PC1
3.1.2、PC2
3.1.3、SW1
#
sysname SW1
#
vlan batch 10 20
#
interface GigabitEthernet0/0/1
description to-AR1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 10 20
#
interface GigabitEthernet0/0/2
description to-PC1
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/3
description to-PC2
port link-type access
port default vlan 20
#
3.1.3、AR1
#
sysname AR1
#
interface GigabitEthernet0/0/0.10
description to-vlan10
dot1q termination vid 10
ip address 10.1.10.1 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet0/0/0.20
description to-vlan20
dot1q termination vid 20
ip address 10.1.20.1 255.255.255.0
arp broadcast enable
#
3.1.4、测试
3.2、拓扑二
3.2.1、PC3
3.2.2、PC4
3.2.3、SW2
#
sysname SW2
#
vlan batch 30 40
#
dhcp enable
#
interface Vlanif30
ip address 10.1.30.1 255.255.255.0
dhcp select interface
dhcp server dns-list 223.5.5.5 114.114.114.114
#
interface Vlanif40
ip address 10.1.40.1 255.255.255.0
dhcp select interface
dhcp server dns-list 223.5.5.5 114.114.114.114
#
interface GigabitEthernet0/0/1
description to-PC3
port link-type access
port default vlan 30
#
interface GigabitEthernet0/0/2
description to-PC4
port link-type access
port default vlan 40
#