本人空间所有文章如没有声明转载,则均为本人原创.
comsyschen@163.com
9个品牌交换机的经典配置(11)
上一篇 / 下一篇 2008-02-02 22:48:39 / 个人分类:网络经典配置
cisco4232 路由模块的设置IXPUB技术博客%Gh*VS gNn-E~
IXPUB技术博客/o C:?+P;@P$G
!IXPUB技术博客2oG^ `$\ZXA
version 12.0
B v"bxx[&~J0no service padIXPUB技术博客xm[ ^4P X@F7e
service timestamps debug uptime
#Gi/`(Yqt0service timestamps log uptime
8YT7xP,B\ x0no service password-encryption
TX)j3ot? @0!
Wg Ff4zq:Q0hostname cisco4003 设置路由器的主机名IXPUB技术博客oCun%ZB
!IXPUB技术博客+W1JI `!e(Jy
enable secret 5 $1$gMBk$cIEt3 设置路由器的超级用户密码IXPUB技术博客 _8e,Fc^+m
enable password fgfgdfg 设置路由器的使能密码
QywD6q0!
oc(e;o3@ Tc0dT0username lin password 0 lin 建立一个只读的用户
Jg{^4x.jC:Q0ip subnet-zero 允许子网掩码有0IXPUB技术博客{:f*VD\LxQF
ip domain-name mzzx.edu.cn 设置域名
%|:q-]P0kQF hm0ip name-server 192.168.1.3 设置DNS服务器地址
6yhP z}#R0!
xMw!~,hw._aMs0!
[Dpt \1Y(S F,{/w0!
gr6TbW0interface Port-channel1 设置port-channel1IXPUB技术博客8KI&p;o4GQ&S~2t%or
no ip address
#},YG {)m:_`.|&_0no ip directed-broadcastIXPUB技术博客 k;usr9g*T
hold-queue 300 in
)A$u/c6HBh0!IXPUB技术博客)O.d5l\]5@
interface Port-channel1.1 设置VLAN1IXPUB技术博客lk uiNV6}K(B$_
encapsulation dot1Q 1 native 封装VLAN1使用dot1q协议
RR}3R GH1D8@#B0ip address 192.168.10.1 255.255.255.0 设置VLAN1的网关地址
M$I(Z+|(FQ po0no ip redirectsIXPUB技术博客2H6s)m]7E
no ip directed-broadcast
#S_i)]I$Y(E0!
zk$KJ:ZGM0interface Port-channel1.2 设置VLAN2
BO\a,P/m0encapsulation dot1Q 2 封装VLAN2使用dot1q协议
%Y%I-[n?4e0ip address 192.168.2.1 255.255.255.0 设置VLAN2的网关地址
1KTqX G$f@P0ip helper-address 192.168.1.4 设置VLAN2的DHCP服务器的地址
(ed+Ae)iK(o7]%?0no ip redirects
lks F6or3V0no ip directed-broadcastIXPUB技术博客NfB+n"b'i
!
^{8A;X,aB0interface Port-channel1.4IXPUB技术博客6\Qe.BWr
encapsulation dot1Q 4IXPUB技术博客8~G ^"X1O8c8_3\#P
ip address 192.168.3.1 255.255.255.0
/s+S/\!T%bJ0ip helper-address 192.168.1.4IXPUB技术博客T4m9O_kM$] o-A
no ip redirectsIXPUB技术博客0?J(p3p5chA$AqH
no ip directed-broadcastIXPUB技术博客.rz}|lO
!IXPUB技术博客nI q E.C*vc
interface Port-channel1.6
7x'c~r3R D`ip0encapsulation dot1Q 6IXPUB技术博客%G/~S3Y*bfJ^6s
ip address 192.168.4.1 255.255.255.0
qdO{1a_2\$f0ip helper-address 192.168.1.4IXPUB技术博客(H,d%OU0Y
no ip redirects
!T-XPuB)Ui0no ip directed-broadcastIXPUB技术博客s1T?1quW
!
[ I7])a%Y(Yc7r0interface Port-channel1.8IXPUB技术博客 NA Cx(f"H};Ai
encapsulation dot1Q 8
&D
IXPUB技术博客/o C:?+P;@P$G
!IXPUB技术博客2oG^ `$\ZXA
version 12.0
B v"bxx[&~J0no service padIXPUB技术博客xm[ ^4P X@F7e
service timestamps debug uptime
#Gi/`(Yqt0service timestamps log uptime
8YT7xP,B\ x0no service password-encryption
TX)j3ot? @0!
Wg Ff4zq:Q0hostname cisco4003 设置路由器的主机名IXPUB技术博客oCun%ZB
!IXPUB技术博客+W1JI `!e(Jy
enable secret 5 $1$gMBk$cIEt3 设置路由器的超级用户密码IXPUB技术博客 _8e,Fc^+m
enable password fgfgdfg 设置路由器的使能密码
QywD6q0!
oc(e;o3@ Tc0dT0username lin password 0 lin 建立一个只读的用户
Jg{^4x.jC:Q0ip subnet-zero 允许子网掩码有0IXPUB技术博客{:f*VD\LxQF
ip domain-name mzzx.edu.cn 设置域名
%|:q-]P0kQF hm0ip name-server 192.168.1.3 设置DNS服务器地址
6yhP z}#R0!
xMw!~,hw._aMs0!
[Dpt \1Y(S F,{/w0!
gr6TbW0interface Port-channel1 设置port-channel1IXPUB技术博客8KI&p;o4GQ&S~2t%or
no ip address
#},YG {)m:_`.|&_0no ip directed-broadcastIXPUB技术博客 k;usr9g*T
hold-queue 300 in
)A$u/c6HBh0!IXPUB技术博客)O.d5l\]5@
interface Port-channel1.1 设置VLAN1IXPUB技术博客lk uiNV6}K(B$_
encapsulation dot1Q 1 native 封装VLAN1使用dot1q协议
RR}3R GH1D8@#B0ip address 192.168.10.1 255.255.255.0 设置VLAN1的网关地址
M$I(Z+|(FQ po0no ip redirectsIXPUB技术博客2H6s)m]7E
no ip directed-broadcast
#S_i)]I$Y(E0!
zk$KJ:ZGM0interface Port-channel1.2 设置VLAN2
BO\a,P/m0encapsulation dot1Q 2 封装VLAN2使用dot1q协议
%Y%I-[n?4e0ip address 192.168.2.1 255.255.255.0 设置VLAN2的网关地址
1KTqX G$f@P0ip helper-address 192.168.1.4 设置VLAN2的DHCP服务器的地址
(ed+Ae)iK(o7]%?0no ip redirects
lks F6or3V0no ip directed-broadcastIXPUB技术博客NfB+n"b'i
!
^{8A;X,aB0interface Port-channel1.4IXPUB技术博客6\Qe.BWr
encapsulation dot1Q 4IXPUB技术博客8~G ^"X1O8c8_3\#P
ip address 192.168.3.1 255.255.255.0
/s+S/\!T%bJ0ip helper-address 192.168.1.4IXPUB技术博客T4m9O_kM$] o-A
no ip redirectsIXPUB技术博客0?J(p3p5chA$AqH
no ip directed-broadcastIXPUB技术博客.rz}|lO
!IXPUB技术博客nI q E.C*vc
interface Port-channel1.6
7x'c~r3R D`ip0encapsulation dot1Q 6IXPUB技术博客%G/~S3Y*bfJ^6s
ip address 192.168.4.1 255.255.255.0
qdO{1a_2\$f0ip helper-address 192.168.1.4IXPUB技术博客(H,d%OU0Y
no ip redirects
!T-XPuB)Ui0no ip directed-broadcastIXPUB技术博客s1T?1quW
!
[ I7])a%Y(Yc7r0interface Port-channel1.8IXPUB技术博客 NA Cx(f"H};Ai
encapsulation dot1Q 8
&D