您好,请知:
1.交换机配置如下:
vlan 10
quit
int gi 1/0/1
des to-msr830
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10
quit
int range gi 1/0/2 to gi 1/0/24
port link-type access
port access vlan 10
quit
2.路由器配置:
vlan 10
quit
int vlan 10
ip address 172.168.168.1 24
quit
dhcp enable
dhcp server ip-pool vlan10
network 172.168.168.0 mask 255.255.255.0
gateway-list 172.168.168.1
dns-list 114.114.114.114
quit
int gi 0/0
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10
quit
acl basic 2000
rule 0 permit source 172.168.168.0 0.0.0.255
quit
ip route 0.0.0.0 0.0.0.0 xx.xx.xx.xx
int gi 0/1
des to-waiwang
ip address xx xx.xx.xx yy.yy.yy.yy
nat outbound 2000
quit
以上是参考配置,具体参数要根据实际情况进行修改。
暂无评论