en
conf
host S1
vlan 100
vlan 200
int vlan 100
ip add 100.1.1.1 255.0.0.0
no sh
int vlan 200
ip add 200.1.1.1 255.0.0.0
int f0/1
sw acc vlan 100
int f0/2
sw acc vlan 200
int f0/24
no sw
ip add 10.1.1.254 255.0.0.0
no sh
exit
ip dhcp pool vlan100
net 100.0.0.0 255.0.0.0
default-router 100.1.1.1
dns-server 10.1.1.1
exit
ip dhcp pool vlan200
net 200.0.0.0 255.0.0.0
default-router 200.1.1.1
dns-server 10.1.1.1
end
阅读(693) | 评论(0) | 转发(0) |