局域网网络工程配置手册经典.docx
- 文档编号:2883141
- 上传时间:2022-11-16
- 格式:DOCX
- 页数:14
- 大小:60.21KB
局域网网络工程配置手册经典.docx
《局域网网络工程配置手册经典.docx》由会员分享,可在线阅读,更多相关《局域网网络工程配置手册经典.docx(14页珍藏版)》请在冰豆网上搜索。
局域网网络工程配置手册经典
网络管理信息系统
局域网网络工程
用户手册
version1.0
2003年5月
1网络设备配置方法
1.1Catalyst6509交换机的配置
1.基本配置
交换机的基本配置主要包括设置交换机的主机名、管理地址、登录口令、缺省网关等
6509首次加电后将出现以下界面,当提示输入密码后按回车键即可进入配置:
CiscoSystemsConsole
Enterpassword:
Console>
Console>enable;进入特权模式
Console>(enable)
Console>(enable)setsystemnamejtt6509_1;设置主机名
jtt6509_1>(enable)setpasswordxxxx;设置系统口令
jtt6509_1>(enable)setenablesecretYYY;设置加密的特权口令
jtt6509_1>(enable)setinterfacesc0192.168.1.1/255.255.255.0;设备IP
jtt6509_1>(enable)setiproutedefault192.168.1.254;缺省网关
2.配置VLAN(VTP域名、VTP模式、创建VLAN)
Jtt6509_1>(enable)setvtpdomainjtt_in;创建VTP域
Jtt6509_1>(enable)setvtpvtpmodeserver;VTP模式为SERVER
Jtt6509_1>(enable)setvtppruningenable;允许广播控制
jtt6509_1>(enable)setVLAN1namemanagement;创建VLAN
jtt6509_1>(enable)setVLAN2nameserver
jtt6509_1>(enable)setVLAN5nametxxxzx
jtt6509_1>(enable)setVLAN10nameleader
jtt6509_1>(enable)setVLAN20namebangong
……
jtt6509_1>(enable)setVLAN180nameguihua
3.配置多链路捆绑和VLAN中继端口
jtt6509_1>(enable)setportchannel1/1-2modeon;配置GEC链路捆绑
jtt6509_1>(enable)settrunk1/1nodot1q;封装trunk
jtt6509_1>(enable)settrunk1/2nodot1q
jtt6509_1>(enable)settrunk3/1-6nodot1q;第3槽的第1到6端口设置为802.1qtrunk端口
jtt6509_1>(enable)settrunk5/1-6nodot1q;第5槽的第1到6端口设置为802.1qtrunk端口
4.配置千兆/百兆以太网端口
1)分配端口到VLAN
jtt6509_1>(enable)setvlan23/7-12
jtt6509_1>(enable)setvlan25/1-10
jtt6509_1>(enable)setvlan55/41-42
jtt6509_1>(enable)setvlan3005/13,5/40
2)配置端口名称
jtt6509_1>(enable)setportname1/1-2tojtt6509_2
jtt6509_1>(enable)setportname3/1toJJT4006_10F
jtt6509_1>(enable)setportname3/7-12toserver
3)配置端口工作模式
jtt6509_1>(enable)setportspeed5/1100;5/1端口设为100M(缺省auto)
jtt6509_1>(enable)setportduplex5/1full;5/1端口设为全双工(缺省auto)
jtt6509_1>(enable)setportduplex5/Xhalf;5/X端口设为半双工
5.配置第二层冗余与负载(生成树协议)
jtt6509_1>(enable)setspantreeroot1,3,5,10-100;fjdd6509_1做为前100号VLAN的根网桥
jtt6509_1>(enable)setspantreerootsecondary110-300;fjdd6509_1做为100号后VLAN的备份根网桥
6.配置第三层交换
1)进入路由模式,配置基本参数
jtt6509_1>(enable)session15or(switchconsole15);进入路由模式
Router>enable;进入特权模式
Router#configterminal;进入配置模式
Router(config)#enablesecretyyyy;设置加密的特权口令
Router(config)#hostnamemsfc_1;设置路由模块的主机名
2)配置允许telnet登录
Msfc_1(config)#linevty04;设置虚终端用于telnet登录
Msfc_1(config)#login
Msfc_1(config)#passwordXXXX;设置telnet口令
3)配置VLAN间路由网关(采用两台6509负载均衡,HSRP模式)
Msfc_1(config)#interfaceVlan1;进入vlan1接口配置
Msfc_1(if-config)#noshutdown;激活
Msfc_1(if-config)#ipaddress192.168.1.253255.255.255.0;vlan1实际地址
Msfc_1(if-config)#standby1ip192.168.1.254;vlan1网关地址(虚地址)
Msfc_1(if-config)#standby1timers515;hello间隔5秒,确认断并接管15秒
Msfc_1(if-config)#standby1priority120;网关优先级=120(主网关)
Msfc_1(if-config)#standby1preempt
……
Msfc_1(config)#interfaceVlan120
Msfc_1(if-config)#noshutdown
Msfc_1(config)#ipaddress192.168.2.253255.255.255.0
Msfc_1(if-config)#standby12ip192.168.2.254
Msfc_1(if-config)#standby12timers515
Msfc_1(if-config)#standby12priority110;网关优先级=110(备网关)
Msfc_1(if-config)#standby12preempt
1.2Catalyst4006交换机的配置(内网配线间)
1.配置基本参数(口令、主机名、IP地址、网关等)
4006首次加电后将出现以下界面,当提示输入密码后按回车键即可进入配置:
Password:
Switch>
Switch>enable;输入enable进入特权模式
Passwords:
;按回车键进入
Switchr#conft;进入配置模式
Switchr(config)#enablesecretxxxx;设置特权口令
Switchr(config)#hostnamejtt4006_10f_in;设置主机名称
Jtt4006_10f_in(config)#interfacevlan1;进入端口配置模式
Jtt4006_10f_in(config-subif)#ipaddress192.168.1.3255.255.255.0;设备IP
Jtt4006_10f_in(config)#linecon0
Jtt4006_10f_in(config-line)#login
Jtt4006_10f_in(config-line)#passwordyyyy;设置控制台口令
Jtt4006_10f_in(config)#linevty04
Jtt4006_10f_in(config-line)#login
Jtt4006_10f_in(config-line)#passwordyyyy;设置Telnet口令
Jtt4006_10f_in(config)#ipdefault-gateway192.168.1.254;配置缺省网关
Jtt4006_10f_in#copyrunning-configstartup-config;保存配置
2.配置VLAN(VTP域名、VTP模式)
Jtt4006_10f_in#vlandatabase;进入VLAN配置模式
Jtt4006_10f_in(vlan)#vtptransparent;VTP模式为transparent
Jtt4006_10f_in(vlan)#vtpdomainjtt_in;创建VTP域名
Jtt4006_10f_in(vlan)#vtppruning;允许广播控制
3.配置千兆/百兆以太网端口
1)设置VLAN中继端口
jtt4006_10f_in(config)#interfacerangeGiga1/1;配置第1槽第1端口
jtt4006_10f_in(config)#descriptionto6509_1;配置端口名称
jtt4006_10f_in(config-if)#switchport;配置为交换模式
jtt4006_10f_in(config-if)#noshutdown
jtt4006_10f_in(config-if)#switchportmodetrunk;配置为VLAN中继模式
jtt4006_10f_in(config-if)#switchporttrunkencapsulationdot1q;封装802.1q
jtt4006_10f_in(config)#interfacerangeGiga1/2;配置第1槽第2端口
jtt4006_10f_in(config)#descriptionto6509_2;配置端口名称
jtt4006_10f_in(config-if)#switchport;配置为交换模式
jtt4006_10f_in(config-if)#noshutdown
jtt4006_10f_in(config-if)#switchportmodetrunk;配置为VLAN中继模式
jtt4006_10f_in(config-if)#switchporttrunkencapsulationdot1q;封装802.1q
2)分配端口到VLAN
jtt4006_10f_in(config)#interfacerangeGiag2/1–6
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 局域网 网络工程 配置 手册 经典