第2个回答 2012-02-29
思科 配置
enable
config term
vlan 10
exit
int vlan 10
ip add 10.0.0.254 255.255.255.0
exit
vlan 20
ip add 172.16.0.253 255.255.255.0
exit
int vlan 20
exit
int fa0/24
switchport trunk encapsulation dot1q
switch mode trunk
switch trunk allow vlan all
exit
int fa0/1
switch mode access
switch access vlan 10
exit
ip route 172.16.0.0 255.255.255.0 vlan20
ip defaut-network 10.0.0.254
exit
----------------------------------------------------------------------------------
华三
super
system
vlan 10
exit
int vlan 10
ip add 10.0.0.253 255.255.255.0
vlan 20
exit
int vlan 20
ip add 172.16.0.254 255.255.255.0
exit
int e1/0/24
port link-type trunk
port trunk permit vlan all
exit
int e1/0/1
port link-type access
port access vlan 20
exit
ip route-static 10.0.0.0 255.255.255.0 vlan 10
自己研究下 非常简单