您的位置:首页 > 其它

单臂路由实验配置文件

2008-09-16 12:56 495 查看
sw1配置
enable
conf t
host sw1
line c 0
logg sy
end
vlan data
vlan 2
vlan 3
vlan 4
vlan 5
exit
conf t
int r f 0/2 - 10
sw ac v 2
no shut
exit
int r f 0/11 - 15
sw ac v 3
no shut
exit
int f0/0
switchport mode trunk
no shut
exit
int f0/1
switchport mode trunk
no shut
end
write
show run
show vlan-s

sw2配置
enable
conf t
host sw2
line c 0
logg sy
end
vlan data
vlan 2
vlan 3
vlan 4
vlan 5
exit
conf t
int r f 0/2 - 10
sw ac v 4
no shut
exit
int r f 0/11 - 15
sw ac v 5
no shut
exit
int f0/0
switchport mode trunk
no shut
exit
int f0/1
switchport mode trunk
no shut
end
write
show run
show vlan-s

sw3配置
enable
conf t
host sw3
line c 0
logg sy
end
vlan data
vlan 2
vlan 3
vlan 4
vlan 5
exit
conf t
int r f 0/1 - 10
sw ac v 3
no shut
exit
int r f 0/11 - 15
sw ac v 4
no shut
exit
int f0/0
no shut
switchport mode trunk
switchport trunk alll vlan add 3
switchport trun k all vlan add 4
end
write
show run
show vlan-s

r1配置
enable
conf t
host r1
no ip do lo
line c 0
logg sy
exit
int e0/0
no shut
exit
int e0/0.1
enc dot1q 2
ip add 192.168.0.1 255.255.255.0
no shut
exit
int e0/0.2
enc dot1q 3
ip add 192.168.1.1 255.255.255.0
no shut
exit
int e0/0.3
enc dot1q 4
ip add 192.168.2.1 255.255.255.0
no shut
exit
int e0/0.4
enc dot1q 5
ip add 192.168.3.1 255.255.255.0
no shut
end
write
show run

vpc配置
ip 192.168.0.2 192.168.0.1 24
2
ip 192.168.1.2 192.168.1.1 24
3
ip 192.168.2.2 192.168.2.1 24
4
ip 192.168.3.2 192.168.3.1 24
5
ip 192.168.1.3 192.168.1.1 24
6
ip 192.168.2.3 192.168.2.1 24
1
show
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: