# 配置交换机S5700,添加两个vlan,2用于连接路由器,3用于接入用户
<Quidway> system-view
[Quidway] sysname S5700S
[S5700S] vlan batch 2 3
[S5700S] is vlan
# 配置连接用户的接口和对应的VLANIF接口
[S5700S] int GigabitEthernet 0/0/17
[S5700S-GigabitEthernet0/0/17] port link-type access
[S5700S-GigabitEthernet0/0/17] port default vlan 3
[S5700S-GigabitEthernet0/0/17] quit
[S5700S] interface Vlanif 3
[S5700S-Vlanif3] ip address 192.168.166.1 24
[S5700S-Vlanif3] quit
# 配置DHCP服务器
[S5700S] dhcp enable
[S5700S] int vlan 3
[S5700S-Vlanif3] dhcp select interface
[S5700S-Vlanif3] dhcp server dns-list 172.16.13.1
[S5700S-Vlanif3] quit
# 配置连接防火墙的接口和对应的VLANIF接口
[S5700S] interface GigabitEthernet 0/0/24
[S5700S-GigabitEthernet0/0/24] port link-type access
[S5700S-GigabitEthernet0/0/24] port default vlan 2
[S5700S-GigabitEthernet0/0/24] quit
[S5700S]int vlan 2
[S5700S-Vlanif2]ip address 172.16.13.2 24
[S5700S-Vlanif2]quit
# 配置缺省路由
[S5700S] ip route-static 0.0.0.0 0.0.0.0 172.16.13.1
[S5700S] dis this
# 在tp-link上添加回程路由
# 在路由器上添加NAT转换
标签:24,quit,Vlanif3,vlan,GigabitEthernet0,S5700,S5700S,TP,LINK From: https://www.cnblogs.com/hjsx/p/17715401.html