您的位置:首页 > 其它

11111配置文件

2008-09-16 12:54 246 查看
sw1交换机配置
enable
config ter
host sw1
enable secret 123
line c 0
logg sy
password 123
login
end
vlan data
vlan 10 name sales
vlan 20 name marketing
vlan 30 name technic
vlan 40 name FR
vlan 50 name financial
exit
config t
int r f 0/5 - 6
sw ac v 50
no shut
exit
int r f 0/7 - 11
sw ac v 10
no shut
exit
int r f 0/12 - 15
sw ac v 20
no shut
exit
int f 0/0
no shut
switchport mode trunk
exit
int f 0/1
no shut
switchport mode trunk
exit
int f0/2
no shut
switchport mode trunk
exit
int f0/3
no shut
switchport mode trunk
exit
int f0/4
no shut
switchport mode trunk
exit
exit
write
show run
write

sw2交换机配置
enable
conf t
host sw2
enable sec 123
line c 0
logg sy
password 123
login
end
vlan data
vlan 10 name sales
vlan 20 name marketing
exit
conf t
int r f 0/1 - 10
sw ac v 10
no shut
exit
int r f 0/11 - 15
sw ac v 20
no shut
exit
int f0/0
switchport mode trunk
no shut
end
write
show run
write

sw3交换机配置
enable
conf t
host sw3
enable sec 123
line c 0
logg sy
password 123
login
end
vlan data
vlan 10 name sales
vlan 20 name marketing
exit
conf t
int r f 0/1 - 5
sw ac v 10
no shut
exit
int r f 0/6 - 15
sw ac v 20
no shut
exit
int f0/0
switchport mode trunk
end
write
show run
write

sw4交换机配置
enable
conf t
host sw4
enable sec 123
line c 0
logg sy
passwort 123
login
end
vlan data
vlan 30 name technic
vlan 40 name FR
exit
conf t
int r f 0/1 - 8
sw ac v 30
no shut
exit
int r f 0/9 - 15
sw ac v 40
no shut
exit
int f0/0
switchport mode trunk
no shut
end
write
show run
write

sw5交换机配置
enable
conf t
host sw5
enable sec 123
line c 0
logg sy
password 123
login
end
vlan data
vlan 30 name technic
vlan 50 name financal
exit
conf t
int r f 0/1 - 8
sw ac v 30
no shut
exit
int r f 0/9 - 15
sw ac v 50
no shut
exit
int f0/0
switchport mode trunk
no shut
switchport trunk all vlan remore 50
end
write
show run
write

r1路由器配置
enable
conf t
host r1
no ip do lo
enable sec 123
line c 0
logg sy
password 123
login
exit
service password-encryption
int e0/1
ip add 192.168.20.1 255.255.255.252
no shut
exit
int e0/0
no shut
exit
int e0/0.1
encap dot1q 10
ip add 192.168.10.1 255.255.255.128
no shut
exit
int e0/0.2
enc dot1q 20
ip add 192.168.10.129 255.255.255.128
no shut
exit
int e0/0.3
enc dot1q 30
ip add 192.168.11.1 255.255.255.128
no shut
exit
int e0/0.4
enc dot1q 40
ip add 192.168.11.129 255.255.255.224
no shut
exit
int e0/0.5
enc dot1q 50
ip add 192.168.11.161 255.255.255.224
no shut
end
write
show run
write
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: