版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、集团服务部网络操作培训集团服务部网络操作培训 时间:时间:20112011年年3 3月月1010日日 版本:版本:20110310 20110310 人员:人员: 网络组网络组一、登录交换机路由器 1、访问cisco设备的方法:开始程序附件通讯超级终端 2、选择com口3、COM口属性设置: 每秒位数:9600 数据位:8 奇偶校验:无 停止位:1 数据流控制:无二、交换机路由器基本配置 Router-1#conf t Router-1(config)#username qm password cisco123 Router-1(config)#enable password cisco Ro
2、uter-1(config)#line console 0 Router-1(config-line)#password cisco456 Router-1(config-line)#login local Router-1(config)#line vty 0 4 开启vty 0-4 等5个用户虚拟终端 Router-1(config-line)#password cisco456 Router-1(config-line)#login local 问题:1、不加浅颜色配置 2、将浅颜色加入到配置中对比下区别。三、VLAN 操作1、vlan 增加删除SW1(config)#vlan10SW1
3、(config)#name server-zone /创建vlan 10 命名为“server-zone”/SW1(config)#no vlan10 /删除vlan/2、将指定接口划分到某一个vlan 下 sw1(config)#interface g1/0/9 /进入到接口下/ sw1(config)#interface range g1/0/9-18 /进入多接口下/ sw1(config)#switchport /将端口配置为二层口/ sw1(config)#switchport mode access /将接口设置为access模式/ sw1(config-if)#switchpor
4、t access vlan 10 /划分到vlan 下/ sw1(config-if)#description 172.172.1.1 /对端口进行描述/问题:将PC 机分别划分到2个VLAN 中,彼此ping操作下,查看网络联通状况。四、接口操作1、Interface vlan sw1#conf t sw1(config)#interface vlan 10 sw1(config)#ip address 172.172.1.1 255.255.255.0 sw1(config)#no shutdown2、交换机 L3端口 sw1#conf t sw1(config)#interface g1
5、/0/1 sw1(config-if)#no switchport sw1(config-if)#ip address 172.172.1.1 255.255.255.0 sw1(config-if)#no shutdown问题:1、建立vlan Interface 作用? 2、哪些cisco交换机支持L3端口? 3、port-channel sw1#conf t sw1(config)#interface port-channel 1 sw1(config-if)#switchport sw1(config-if)#switchport trunk encapsulation dot1q s
6、w1(config-if)#switchport mode trunk sw1(config-if)#exit sw1(config)#interface g1/0/1 sw1(config-if)#switchport sw1(config-if)# switchport trunk encapsulation dot1q sw1(config-if)#switchport mode trunk sw1(config-if)#channel-group 1 mode on /将物理接口划分到port-channel中/ 配置完成,show interface port-channel1 看一
7、下信息。六、TRUNK 配置1、sw-1#conf t sw-1(config)#interface g3/6 /进入到某一个接口下/ sw-1(config-if)#switchport /将接口设置为2层口/ sw-1(config-if)#switchport trunk encapsulation dot1q(isl) /将接口封装为dot1q 或者isl/ sw-1(config-if)#switchport mode trunk /将接口设置为trunk模式/ sw-1(config-if)#switchport trunk allowed vlan all 问题:1、trunk
8、作用实验。 操作练习-1HostA IP :172.172.10.1/24HostB IP: 172.172.20.1/24HostC IP: 172.172.10.2/24HostD IP: 172.172.20.2/24要求:Host A ping 通 Host C Host B ping 通 Host D七、路由Router#conf tRouter(config)#interface f0/0Router(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shutdown Router(config-
9、if)#exitRouter(config)#interface f0/1Router(config-if)#ip address 192.168.2.1 255.255.255.0Router(config-if)#no shutdown Router(config-if)#exitRouter(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2或者Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.2Router# show ip route 路由匹配顺序S 172.172.0.0/1
10、6 1/0 via 192.168.1.2C 192.168.1.0/24 is directly connected, FastEthernet0/1S* 0.0.0.0/0 1/0 via 192.168.1.2八、单臂路由操作方式一:secondary IPRouter(config)#interface f0/1Router(config)#ip address 192.168.1.254 255.255.255.0Router(config)#ip address 192.168.2.254 255.255.255.0 secondary Router(config)#no shut
11、downRouter#show interfaces f0/1方式二、subifRouter(config)#interface fastEthernet 0/1.1Router(config-subif)#ip address 192.168.1.254 255.255.255.0% Configuring IP routing on a LAN subinterface is only allowed if that subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q, or ISL vLAN.
12、Router(config-subif)#encapsulation dot1Q 1Router(config-subif)#ip address 192.168.1.254 255.255.255.0Router(config)#interface fastEthernet 0/1.2Router(config-subif)#encapsulation dot1Q 2Router(config-subif)#ip address 192.168.2.254 255.255.255.0九、网关冗余 6个状态 initial、learn、listen、speak、standby、active1、
13、HSRP主用设备配置sw-1#conf tsw-1(config)#interface vlan 10sw-1(config-if)#ip address 172.172.1.1 255.255.255.0sw-1(config-if)#standby 1 ip 172.172.1.3sw-1(config-if)#standby priority 120 (设置优先级,默认100)sw-1(config-if)#standby 1 preemt备用设备配置sw-2#conf tsw-2(config)#interface vlan 10sw-2(config-if)#ip address 1
14、72.172.1.2 255.255.255.0sw-2(config-if)#standby 1 ip 172.172.1.31、分别在Router A 和Router B上show standby brief 查看 Router A 和Router B状态2、down 掉其中一个交换机。通过PC ping stanby IP,并且查看standby 状态 1、debug ip nat 进行查看NAT转换信息 2、show ip nat translations 查看NAT对应关系 十、NAT1、静态NAT Routeren Router#conf t Router(config)#ip n
15、at inside source static 192.168.1.1 202.98.11.43 Router(config)#interface f0/0 Router(config-if)#ip nat inside Router(config-if)#no shutdown Router(config-if)#interface f0/1 Router(config-if)#ip nat outside Router(config-if)#no shutdown2、动态NATRouter(config)#ip nat pool TEST 202.98.11.1 202.98.11.1 n
16、etmask 255.255.255.128/建立动态NAT地址池,命名为“TEST”/Router(config)#ip nat inside source list 100 pool TEST/配置动态NAT,动态地址池为“TEST”Router(config)#access-list 100 permit ip 192.168.1.0 0.0.0.255 any/配置允许进行NAT转换的地址为192.168.1.0/24(反掩码)/ Router(config)#interface f0/0 Router(config-if)#ip nat inside Router(config-if
17、)#no shutdown Router(config-if)#interface f0/1 Router(config-if)#ip nat outside Router(config-if)#no shutdown/配置接口NAT/3、PATRouter(config)#ip nat pool TEST 202.98.11.1 202.98.11.11 netmask 255.255.255.0 /建立NAT pool/ Router(config)#ip nat inside source list 100 pool TEST overload /配置 PAT(overload)/ Ro
18、uter(config)#access-list 100 permit ip 192.168.1.0 0.0.0.255 any /配置允许进行转换的地址/ Router(config)#interface f0/0 Router(config-if)#ip nat inside Router(config-if)#no shutdown Router(config-if)#interface f0/1 Router(config-if)#ip nat outside Router(config-if)#no shutdown /配置接口IP/如果用户数不多,可以启用接口PAT ,不用配置NA
19、T POOLRouter(config)# ip nat inside source list 100 interface f0/0 overload 十二、访问控制列表1、标准访问控制列表(1-99 1300-1999) sw1#conf t sw1(config)#access-list 1 deny 192.168.1.1 0.0.0.255 sw1(config)#access-list 1 permit any sw1(config)#interface f0/1 sw1(config-if)#ip access-group 1 in / out2、扩展访问控制列表(100-199
20、2000-2699) sw1#conf t sw1(config)#access-list 101 permit ? (查看?后增加内容,对比stand ) sw1(config)#access-list 101 deny tcp host 192.168.1.1 eq telnet any sw1(config)#access-list 101 permit tcp host 192.168.1.1 any sw1(config)#interface f0/1 sw1(config-if)#ip access-group 1 in /out 交换机管理交换机管理 ipsw1(config)#
21、interface vlan 10sw1(config)#ip address 172.172.1.1 255.255.255.0默认路由Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.2Ip routing 启用三层交换机路由功能排错mac-address-table static 0013.d45a.c6c3 vlan 11 drop # 封MACno mac-address-table static 0013.d45a.c6c3 vlan 11 drop # 解除绑定 IParp 10.34.90.210 000c.7683.2590 ARPA解除 绑定 IPno arp 10.34.90.21
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026下半年下半年高中语文教资面试古诗文专项真题演练
- 2025-2026学年qq信息技术说课稿
- 2026一级建设工程经济 讲义
- 2026工程工程量清单规范差异对比
- 幼儿园教师心理健康教育
- 哈尔滨医科大学神经病学中枢神经系统脱髓鞘疾病
- 《快乐的童年》课件
- 2026金融券商面试题目及答案
- 《制药工艺学》期末试卷及答案
- 2026儿童康复专业测试题与答案
- 《“诺曼底号”遇难记》课件
- 人教PEP四年级英语上册阅读理解专项30篇(含答案)
- 2026年秋季开学中秋诗词赏析课件
- 2026临汾市侯马市招聘乡(街道)消防协管员考试备考试题及答案详解
- 2026秋学期人教版小学数学六年级上册(新教材)教学计划附进度表
- 2026年秋季学期小学四年级上册英语(人教版PEP新教材)教学计划
- 自来水生产工岗前专项能力考核试卷含答案
- 2026教科版六年级科学上册第一单元《健康生活》全部教案
- 2026年山东青岛市中考历史试题(附答案)
- 江西省人才发展集团有限公司2026年春季集中招聘专题【11人】建设笔试备考题库及答案解析
- 2026年重庆市九龙坡区辅警人员招聘考试试卷及答案
评论
0/150
提交评论