老男人百科 > 百科 > 正文

cisco路由器怎么设置(华为交换机基本配置命令)

2023-06-06 20:15:38 阅读( 6640)

  一、  1.router(config)#routerrip启动rip进程  2.router(conifg-router)#network172.17.0.0指定rip协议的主网络  3.router(config-router)#passive-interfacef0/1把f0/1配置成passive端口  4.router(config-router)#neighbor172.17.12.6

一,

1. Router (Configuration) # Router rip starts the rip process.

2. Router (configuring router) # Network 172.17.0.0 specifies the main network of the breakout protocol.

3. Router (configure router) # Passive interface f0/1 configures f0/1 as a passive port.

4.路由器(config-router)# neighborhood 172 . 17 . 12 . 67单波通知路由器rip更新。

5. Router (configuration -if)#ip address 192.168.83.244 255.255.255.0 Main Internet Protocol (abbreviation of Internet Protocol) address.

Router (configuration -if)#ip address 10.33.55.1 255.255.0 Auxiliary Auxiliary Internet Protocol (short for Internet Protocol) address.

第二,

1. Router (configure router) # Version 2 Configure the rip to version 2.

2. Router (configured ip)#ip rip sends version 1 and only sends rip 1 packets.

Router (configured ip)#ip rip receiving version 2 only receives rip 2 packets.

3. The router (configured router) # has no automatic summary closing summary function.

4. Router (configuration -if)# No ip split horizon Turn off split horizon.

5. Router # displays the ip ospf database router 192.168.30.10 displays the router Level Shift Amplifier announcement.

Router # shows ip ospf database network 192.168.17.18 shows the announcement of network Level Shift Amplifier.

Router # shows ip ospf database summary 172.16.121.0 shows the announcement of network summary Level Shift Amplifier.

Router # displays ip ospf database ASBR- summary displays ASBR summary Level Shift Amplifier announcement.

Router # displays the external 10.83.10.0 of ip ospf database, and displays the announcement of external Level Shift Amplifier of autonomous system.

Router # displays ip ospf database nssa- external display NSSA external Level Shift Amplifier announcement.

第三,

1. Router (configuration) # Router ospf 10 is configured with open shortest path first protocol process identification.

2. Router (configuration) # interface loops back to 0.

Router (configuration -if)#ip address 192.168.10.1 255.255.255.0 Configure the loopback 0 interface.

3.router(config-router)#area 1 stub 配置stub区域

4.router(config-router)#area 1 stub no-summary配置totally stubby区域

5.router(config-router)#area 1 nssa配置nssa区域

6.router(config-router)#area 25 range 172.16.0.0 255.240.0.0 配置地址汇总

7.router(config-router)#area 100 virtual-link 192.168.100.33 配置虚链路

四、

1.router(config)#standby 172 ip 172.16.10.254加入备份组172 指定虚拟IP 地址

2.router(config-if)#standby 47 priority 150配置HSRP的优先级150

3.router(config-if)#standby 47 preempt 配置HSRP的占先权

4.router(config-if)#standby 47 ip time 2 9 2表示HELLO时间,9表示保持时间

5.router(config)#interface s0

6.router(config-if)#standby 47 track s0 100配置跟踪端口s0并在端口down时减少100

7.router#show standby brief 查看HSRP的状态

8.router#no debuge all关闭调试功能

五、

1.router(config-if)#ip access-group 1 in 访问列表的入

router(config-if)#ip access-group 1 out访问列表的出

2.router(config)#access-list 1 premit 192.168.10.0 0.0.0.255 允许192.168.10.0的网段通过

router(config)#access-list 1 deny 192.168.10.0 2.0.0.255 拒绝192.168.10.2的主机通过

3.router(config)#access-list 1 premit any ;any表示0.0.0.0 255.255.255.255

router(config)#access-list 1 premit host 172.30.16.29 ;host表示0.0.0.0

4.router(config)#access-list 101 deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 21拒绝来自172.16.4.0去往172.16.3.0的FTP流量

5.router(config)#ip access-list extended cisco创建名为cisco的命名访问控制列表

六、静态地址转换

1.配置外部端口的IP地址

Router(config)#interface s0

Router(config-if)#ip address 61.159.62.129 255.255.255.248

2.配置内部端口的IP地址

Router(config)#interface e0

Router(config-if)#ip address 192.168.100.1 255.255.255.0

3.静态地址转换

Router(config)#ip nat inside source static 192.168.100.2 61.159.62.130

4.在内部和外部端口上启用NAT

Router(config)#interafce s0

Router(config-if)#ip nat outside

Router(config)#interafce e0

Router(config-if)#ip nat inside

七、动态NAT配置

1.配置外部端口的IP地址

Router(config)#interface s0

Router(config-if)#ip address 61.159.62.129 255.255.255.248

2.配置内部端口的IP地址

Router(config)#interface e0

Router(config-if)#ip address 192.168.100.1 255.255.255.0

3.定义内部网络允许访问外部网络

Router(config)#access-list 1 permit 192.168.100.0 0.0.0.255

4.定义合法的IP地址池

Router(config)#ip nat pool chen 61.159.62.129 61.159.62.190 netmask 255.255.255.248

5.实现网络地址转换

Router(config)#ip nat inside source list 1 pool chen

6.在内部和外部端口上启用NAT

Router(config)#interafce s0

Router(config-if)#ip nat outside

Router(config)#interafce e0

Router(config-if)#ip nat inside

八、PAT的配置

1.配置外部端口的IP地址

Router(config)#interface s0

Router(config-if)#ip address 61.159.62.129 255.255.255.248

2.配置内部端口的IP地址

Router(config)#interface e0

Router(config-if)#ip address 192.168.100.1 255.255.255.0

3.定义内部网络允许访问外部网络

Router(config)#access-list 1 permit 192.168.100.0 0.0.0.255

4.定义合法的IP地址池

Router(config)#ip nat pool chen 61.159.62.129 61.159.62.190 netmask 255.255.255.248

5.实现复用IP地址转换

Router(config)#ip nat inside source list 1 pool chen overload

6.在内部和外部端口上启用NAT

Router(config)#interafce s0

Router(config-if)#ip nat outside

Router(config)#interafce e0

Router(config-if)#ip nat inside

猜你喜欢

Guessyoulike
青少年的生理变化有哪些(青少年生理变化)
怎么治疗性洁癖(耳鸣怎么治疗)

怎么治疗性洁癖(耳鸣怎么治疗)

hao333 2339次阅读2023-02-14 15:39
女人适度自慰的6大好处(女人结扎好处和坏处)
16岁少年斩首情敌(16岁少年斩首情敌)

16岁少年斩首情敌(16岁少年斩首情敌)

hao333 4995次阅读2023-02-06 03:28
专题页