VLAN间路由的配置方法

来源:百度知道 编辑:UC知道 时间:2024/05/12 17:04:21
需要稍微详细点的步骤啊 呵呵 先谢谢了

router
interface fastethernet 0/0
no ip address
no shutdown
int fastehternet 0/0.1
encapsultation dot1q 1
ip address 192.168.1.254 255.255.255.0

int fastehternet 0/0.2
encapsultation dot1q 2
ip address 192.168.2.254 255.255.255.0

switch:2924
>enable
#configure terminal
(config)#hostname Switch-1
Switch-1#vlan database
Switch-1(vlan)#vlan 2 name Bejing
Switch-1(vlan)#end
Switch-1#configure terminal
Switch-1(config)#interface vlan 1
Switch-1(config)#ip default gateway 192.168.1.254
Switch-1(config-if)#ip address 192.168.1.253
Switch-1(config-if)#no shutdown
Switch-1(config)#interface ethernet 0/1
Switch-1(config-if)#switch mode access
Switch-1(config-if)#exit
Switch-1(config)#interface ethernet 0/3
Switch-1(config-if)#switchport access vlan 2
Switch-1(config-if)#exit

Switch-1(config)#interface fastethernet 0/26
Swit