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
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
相关文章推荐
- centos VI编辑器配置文件
- redis cluster配置文件和集群状态详解
- log4j日志配置文件及将日志根据不同的等级输入到不同的文件之中
- 2.Hibernate中映射配置文件各种标签的具体配置
- Android Studio下如何配置AIDL文件
- .gitignore文件配置
- log4j日志配置文件及将日志根据不同的等级输入到不同的文件之中
- redis配置文件redis.conf中文版(基于2.4)
- 史上最详细的vsftpd配置文件讲解
- linux安装redis以及配置文件修改
- 配置apache的文件访问路径
- 无敌全web.xml配置文件元素详解
- Spring配置文件location的几种设置方法
- 使用PHP对配置文件进行修改
- apache2.2 httpd.conf文件转发给tomcat配置实例
- 配置可执行文件案例--The Eclipse executable launcher was unable to locate its companion shared library.
- hibernate在不联网时不能解析配置文件解决方案
- Linux可插拔认证模块(PAM)的配置文件、工作原理与流程
- Linux文件与目录之文件权限和目录配置
- MySQL配置文件my.cnf的理解