文档库 最新最全的文档下载
当前位置:文档库 › 路由器配置命令(最全)

路由器配置命令(最全)

路由器配置命令(最全)
路由器配置命令(最全)

路由器的配置命令

Router> (用户模式)

Router>enable (进入特权模式)

Router# (特权模式)

Router#configure terminal (进入全局配置模式)

Router(config)# (全局配置模式)

Router(config)#hostname XXX (设置路由器主机名)

Router(config)#enable password 123 (设置特权非密口令)

Router(config)#enable secret 123 (设置特权加密口令)

Router(config)#interface f0/6 (进入端口配置模式)

Router(config-if)# (端口配置模式)

Router(config)#line consode 0 (进入控制台端口)

Router(config)#line vty 0 4 (进入虚拟终端配置模式)

Router(config- line)# (虚拟终端配置模式)

Router(config)#router rip (进入rip路由协议配置模式)

Router(config-router) ( rip路由协议配置模式)

Router(config-router)network 159.105.0.0 (设置参与RIP协议的网络地址,不支持可变长掩码,只有IP网络号)

Router(config)#router ospf 63 (进入ospf路由协议配置模式)

Router(config-router) # ( ospf路由协议配置模式)

Router#write memory (保存配置到路由器的NVRAM中)

Router#write network tftp (保存配置到TFTP服务器中)

Router#write erase (删除路由配置)

设置模式(setup) 刚出厂第一次建立配置文件

RXBOOT模式密码丢失,进入可以恢复密码

exit逐级退出end 或ctrl+z 直接退至特权模式

基本命令:telnet ping trace show

telnet 可以由一台路由器登录到另一台路由器,最多支持5个连接。

ping 可以通过echo协议判断网络的连接情况。

trace 查询网络上数据传输流向的理想工具,测试转发分组的每一步,不可达***,退出Ctrl-Shinf-6

show 查看了解路由器的各种信息。

R1>show flash 查看FLASH

R1>show clock 查看时钟

R1>show version 查看路由器软件、硬件版本

在特权模式查看:

R1#show configuration 查看路由器配置

R1#show ip route 查看路由表

R1#show ip protocols 查看路由协议的详细信息

配置方式:

1.使用控制端口(console)配置

2.使用AUX端口连接一台Modem,通过拨号远程配置路由器.

3.使用telnet远程登录到路由器上配置.

4.使用TFTP服务,拷贝配件文件,修改配置文件的形式配置路由器

5.通过网络管理协议SNMP修改路由器配置文件进行配置.

远程虚拟终端配置:

Router(config)#line vty 0 4 (进入虚拟终端配置模式)

Router(config-line)#pasword 7 zzz123 (配置远程虚拟终端登录密码)

Router(config-line)#

路由器是互联不同的逻辑子网的设备,因此,他的每个接口都必须配置唯一的逻辑地址(IP),telnet登录时,可以使用任意一个处于激活状态的接品的IP,所以路由器不需要单独配置设备管理地址,远程登录时只需要密码即可.

Router(config)#hostname R1 命名路由器R1

R1(config)#

Router(config)#enable secret xxx123 超级用户加密密码

Router(config)#enable password 7 aaa123 超级用户明文密码

Router#write memory 保存路由器配置到NVRAM中

Router#write network tftp 保存路由器配置到TFTP中

Router#write erase 清除路由器配置

Router(config)#interface g0/8

Router(config-if)#description To-shenzhen 描述,连接到深圳

Router(config)#interface pos 3/0

Router(config)#bandwidth 2500000 设置接口带宽2.5G,以kbps为单位

Router(config)#interface g0/10

Router(config-if)#ip address 192.168.1.22 255.255.255.0 配置接口IP地址

Router(config)#interface g0/10

Router(config-if)# no shutdown 开启接口

标准以太网

Router(config)#interface E0 进入标准以太网E接口

Router(config-if)#description To-shanghai连接到上海

Router(config-if)#ip address 202.112.7.4 255.255.255.0端口IP地址

Router(config-if)#bandwidth 1000带宽1G

Router(config-if)#exit

Router(config)#exit

Router#

快速以太网

Router(config)#inerface f2/1 进入快速以太网f接口

Router(config-if)#description To-beijing 连接到北京

Router(config-if)#ip address 202.112.41.145 255.255.255.240端口IP地址

Router(config-if)#bandwidth 2000000带宽2G

Router(config-if)#duplex full 模式为全双工(full双工hull半双工auto自动)

Router(config-if)#no ip directed-broadcast禁止定向子网广播

Router(config-if)#no ip proxy-arp 不作arp代理

Router(config-if)#no shutdown 开启端口.

Router(config-if)#exit 退出

千兆以太网

Router(config)#inerface g0/1 进入千兆以太网g接口

Router(config-if)#description To-beijing 连接到北京

Router(config-if)#ip address 202.112.41.145 255.255.255.240端口IP地址

Router(config-if)#bandwidth 2500000带宽2.5G

Router(config-if)#duplex full 模式为全双工(full双工hull半双工auto自动)

Router(config-if)#no ip directed-broadcast禁止定向子网广播

Router(config-if)#no ip proxy-arp 不作arp代理

Router(config-if)#no shutdown 开启端口.

Router(config-if)#exit 退出

配置POS接口

Pos是packet over SONET/SDH的缩写,是一种利用SONT/SDH提供的高速传输通道直接传送IP数据包的技术,

POS技术支持光纤介质,是一种高速先进的广域网连接技术.链路层协议主要有PPP和HDLC,目前可以提供155M,622M,2.5G和10G的传输速率接口.接口配置参数有接口带宽,接口地址,接口链路层协议,接口帧格式,接口CRC校验和flag(帧头中净负荷类型标志位),要注意接口参数的一致性.

Router(config)#inerface POS3/0 进入快速以太网f接口

Router(config-if)#description To-beijing 连接到北京

Router(config-if)#bandwidth 10000000带宽10G

Router(config-if)#ip address 202.112.41.145 255.255.255.240端口IP地址

Router(config-if)#crc 32 (可选的crc校验位是16和32)

Router(config-if)#pos framing shd (可选的帧格式是shd和sonet)

Router(config-if)#no ip directed-broadcast禁止定向子网广播

Router(config-if)#pos flag s1 s0 2 (注意:s1 s0 =00 表示sonet 帧数据, s1 s0 =10<十进制2> 表示sonet 帧数据)

Router(config-if)#no ip proxy-arp 不作arp代理

Router(config-if)#no shutdown 开启端口.

Router(config-if)#exit 退出

POS接口实例配置:(2011年9月网考试题)

某园区网用2.5Gbps的POS技术与Internet相连,POS接口的帧格式是SONET。路由协议的选择方案是:园区网内部采用OSPF 动态路由协议,园区网与Internet的连接使用静态路由。

图1 网络拓扑图

问题:

请阅读以下R3和R4的部分配置信息,并补充【6】到【10】空白处的配置命令或参数,按题目要求完成路由器的配置。

R3的POS接口、OSPF和缺省路由的配置信息

Router-R3 #configure terminal

Router-R3 (config)#

Router-R3 (config)#interface pos3/0

Router-R3 (config-if)#description To Internet

Router-R3 (config-if)#bandwidth 2500000

Router-R3 (config-if)#ip address 195.19.78.5 255.255.255.252

Router-R3 (config-if)# 【6】crc 32

Router-R3 (config-if)#pos framing sonet

Router-R3 (config-if)#no ip directed-broadcast

Router-R3 (config-if)#pos flag 【7】s1s0 0

Router-R3 (config-if)#no shutdown

Router-R3 (config-if)#exit

Router-R3 (config)#router ospf 65

Router-R3 (config-router)#network 222.98.66.128 【8】area 0

Router-R3 (config-router)#redistribute connected metric-type 1 subnets

Router-R3 (config-router)#area 0 range 222.98.66.128 【9】

Router-R3 (config-router)#exit

Router-R3 (config)#ip route 0.0.0.0.0.0.0.0 195.19.78.6

Router-R3 (config)#exit

Router-R3 #

R4的静态路由配置信息

Router-R4 #configure terminal

Router-R4 (config) #ip route 222.98.66.128 【10】

解析:(config-if)# crc 32指的是配置CRC的校验功能;

【7】S1 S0 0;

解析:在pos flag的设置中,s1 s0=00(十进制0)表示是SONET帧的数据,s1 s0=10(十进制2)表示是SDH帧的数据。本题要求设置为SONET帧的数据,故填写为s1 s0 0。

【8】0.0.0.127;

解析:在路由器的OSPF配置模式下,可以使用“network ip <子网号> area <区域号>”命令定义参与OSPF的子网地址。因为整个园区网内部都采用OSPF协议,而园区网由两个子网“222.98.66.128/26”和“222.98.66.192/26”两个网址块组成,对这两个网址块进行汇聚,得到的园区网的网络地址为222.98.66.128/25,其子网掩码为255.255.255.128,所以在中应该填写子网掩码的反码,即0.0.0.127。

【9】255.255.255.128;

解析:可以使用“area <区域号> range <子网地址> <子网掩码>”命令定义某一特定范围子网的聚合。对于本题的网络中,根据上一题的解释,可知聚合后的网络地址为222.98.66.128/25,所以子网掩码即为255.255.255.128。

【10】255.255.255.128 195.19.78.5;

解析:静态路由配置ip route源地址目标网段下一跳地址

Loopback(环回接口)接口配置

环回接口是一种应用最为广泛的虚接口,路由器上没有一个实际的物理接口与之对应.也没有与其相连接的物理链路.是一个虚拟的接口,有效值0 ~ 2 147 483 647.它作为一个路由器的管理地址,使管理员随时登录路由器进行配置管理.还可以做为OSPF和BGP 的router id.使路由器更稳定可靠.只需分配一个ip地址作为管理地址,子网掩码为255.255.225.255.永远处于激活状态.

Router(config)#interface lookback 0

Router(config-if)#ip address 192.167.167.6 255.255.255.255

Router(config-if)#no ip router-cache

Router(config-if)#no ip mroute-cahce

Router(config-if)#exit

路由器静态ip配置

全局模式: ip router <目的网络地址><子网掩码><下一跳路由器的ip地址>

Router(config)#ip router 0.0.0.0 0.0.0.0 222.112.41.73 (起始路由器,目的网络,子掩都为0,只有下跳路由地址)

Router(config)#ip router 59.65.96.0 255.255.240.0 222.112.37.1

RIP动态路由协议配置:

Router(config)#router rip

Router(config-router)#network 159.105.0.0

Router(config-router)#passive-interface Ethernet 0 (E0配置为被动接口,亦即只接收不发送路由更新信息)

Router(config-router) ( rip路由协议配置模式)

OSPF的基本配置:

1 全局模式:network ip 子网号wildcard-mask area 区域号

单个IP地址或网络地址参与OSPF

Router(config)#router ospf 63 (进入OSPF配置模式,其中63为OSPF在本路由器中的进程。)

Router(config-router)#network 131.107.25.1 0.0.0.0 area 0 (其中的wildcard-mask是子网掩码的反码)

Router(config-router)#exit

Router(config)#exit

2 使用area range 命令定义参与OSPF的子网地址

全局模式:area 区域号range 子网地址子网掩码

Router(config)#router ospf 63 (进入OSPF配置模式,其中63为OSPF在本路由器中的进程。)

Router(config-router)#area 0 range 212.37.0 255.255.255.0 (area后面的0是区域号)

Router(config-router)#exit

Router(config)#exit

IP访问控制列表

标准IP访问控制列表1-99 扩展1300-1999 只检查源网络、子网、主机IP地址来决定对数据包的过滤扩展IP访问控制列表100-199 扩展2000-2699 可根据源地址和目的地址来决定数据包的过滤。另外还可以根据协议,端口号等更精确的控制。命令:ip access-list或access-list,

1.其中,access-list只能使用表号标识列表,而IP access-list即可以使用表号,也可以使用名字标识列表.

2.访问控制列表建立并配置好规则后,必须应用于一个接口\一个VTY line 或者被其它命令引用后才能生效.

3.另外,要注意ACL的语句,ACL是按照顺序执行的,

4.ACL的通配符(wildcard-mask)实际上是子网掩码的反码.

一配置标准访问控制列表:

Router>enable (进入特权模式)

Router#configure terminal (进入全局配置模式)

Router(config)#access-list 10 permit 211.102.130.0 0.0.0.255 (允许源地址211.102.130.0 255.255.255.0子网上的主机登录路由器.) Router(config)#line vty 0 5 (配置应用于虚拟VTY 0 5上)

Router(config-line)#access-class 10 in

Router(config)#exit (返回上一级)

Router#show conrfiguration (查看访问控制列表配置)

......

Router#show access-lists(查看访问控制列表)

......

禁止非法的源地址数据包进出路由器

Router>enable (进入特权模式)

Router#configure terminal (进入全局配置模式)

Router(config)#access-list 30 deny 10.0.0.0 0.255.255.255

Router(config)#access-list 30 deny 192.168.0.0 0.0.255.255

Router(config)#access-list 30 deny 127.0.0.0 0.255.255.255

Router(config)#access-list 30 deny 172.16.0.0 0.255.255.255 (deny禁止172.16.0.0 0.255.255.255,后为通配符)

Router(config)#access-list 30 permit any (允许any=所有的)

Router(config)#interface g0/1 (进入g0/1接口)

Router(config-if)#ip access-group 30 in (配置应用于接口)

配置扩展访问控制列表

Protocol 协议source 源地址,源头destination 目的地operator 管理,操作号operand 取值,操作数(端口号)

命令格式:access-list access-list number{permit/deny }protocol source wildcard-mask destination wildxard-mask eq …

中文: Access-list 列表号允许/拒绝协议源地址通配符目的地址通配符<>= 端口号

1.拒绝转发所有IP地址进出端口号为1434的UPD协议数据包

Router (config)#access-list 130 deny udp any any eq 1434 (拒绝所有端口号为1434的UPD协议数据包)

Router (config)#access-list 130 permit ip any any (其它的允许通过)

Router (config)#interface g0/1 (进入端口模式,应用于端口)

Router (config-if)#ip access-group 130 in (所有进出g0/1)

Router (config-if)#ip access-group 130 out

Router (config)#show access-lists (查看控制列表)

2. 封禁某一台主机

Router (config)#access-list 110 deny ip host 202.112.60.230 any log (拒绝该主机的所有数据包)

Router (config)#access-list 110 deny ip any host 202.112.60.230 log (其它的允许通过)

Router (config)#access-list 110 permit ip any any

Router (config)#interface g0/1 (进入端口模式,应用于端口)

Router (config-if)#ip access-group 110 in (所有进出g0/1)

Router (config-if)#ip access-group 110 out

Router (config)#show access-lists (查看控制列表)

2.封禁ICMP协议,只允许162.105.141.0/24和202.38.97.0/24子网的ICMP数据包通过路由器

Router (config)#access-list 198 permit icmp 162.105.141.0 0.0.0.255 any

Router (config)#access-list 198 permit icmp 202.38.97.0 0.0.0.255 any

Router (config)#access-list 198 deny icmp any any

Router (config)#access-list 198 permit ip any any

Router (config)#interface g0/1 (进入端口模式,应用于端口)

Router (config-if)#ip access-group 198 in (所有进出g0/1)

Router (config-if)#ip access-group 198 out

Router (config)#show access-lists (查看控制列表

Ip access-list 命令

Extended 扩展standard 标准,规格Protocol 协议source 源地址,源头destination 目的地

operator 管理,操作号operand 取值,操作数(端口号)

全局模式下,格式: ip access-list extended /standard access-list number/ name

命令格式: {permit/deny }protocol source wildcard-mask destination wildard-mask/operator operand

中文:允许/拒绝协议源地址通配符目的地址通配符<>= 端口号

Router(config)#ip access-list extended 130 (进入表号为130扩展访问控制列表配置模式)

Router(config-ext-nacl)#

Router(config-ext-nacl)#deny upd any any eq 1434

Router(config-ext-nacl)#permit ip any any .....

Router(config)#interface g0/1

Router(config-ip)#access-group 130 in

Router(config-ip)#access-group 130 out ...

Router#show access-lists (查看访问控制列表)

用名字标识访问控制列表配置方法:

Extended 扩展standard 标准,规格Protocol 协议source 源地址,源头destination 目的地

operator 管理,操作号operand 取值,操作数(端口号)

命令格式:ip access-list exterded│standard access-list-numb │name

中文: Access-list 列表号允许/拒绝协议源地址通配符目的地址通配符<>= 端口号

在标准下:命令格式:permit│deny procotol source wildcard-mask destinttion wildcard-mask operator operand

中文:允许│拒绝协议源地址通配符目的地址通配符<>= 端口号

1.禁止非法地址进出路由器

Router>enable

Router#configure terminal

Router(config)#ip access-list standard test (进入扩展或标准访问控制模式)

Router(config-std-nacl)#deny 10.0.0.0 0.255.255.255 log

Router(config-std-nacl)#deny 192.168.0.0 0.0.255.255

Router(config-std-nacl)#deny 127.0.0.0 0.255.255.255

Router(config-std-nacl)#deny 172.16.0.0 0.15.255.255

Router(config-std-nacl)#permit any

Router(config-std-nacl)#exit

Router(config)#interface g0/1

Router(config-if)#ip access-group test in

Router(config-if)#ip access-group test out

Router(config-if)#exit

Router(config)#exit

Router#show access-lists

……

2.禁止端口号1434的UTP和4444的TCP数据包

进入全局模式: block 区,块

Router(config)#ip access-list extended block1434

Router(config-std-nacl)#deny udp any any eq 1434

Router(config-std-nacl)#deny tcp any any eq 4444

Router(config-std-nacl)#permit ip any any

Router(config-std-nacl)#exit

Router(config)#interface g0/1

Router(config-if)#ip access-group block1434 in

Router(config-if)#ip access-group block1434 out

…..

Router#show access-lists

DHCP

DHCP工作流程:

DHCPDISCOVER 广播包(DHCP发现)

DHCPOFFER 单数据包(DHCP供给)

DHCPERQUEST 广播包(DHCP请求)

DHCPACK 单数据包(DHCP确认)

1.DHCP客户机向网络发送一下DHCPDISCOVER封包,由于客户机没有地址,封包源地址0.0.0.0,目的地址:255.255.255.255,

向网络广播。当客户机第一个DHCP discover封包发出去1秒内没有响应,就会进行第二次广播,总共为四次时间为1秒,9秒,13秒,16秒。如果都没有得响应则显示错误,5分钟后再试。

2.DHCP服务器监听到客户端发出的封包后,就会从没有租出的地址中,选择最前面闲置的IP,及TCP、IP的设定,响应一

个DHCPOFFER封包,其中包含租用期限。

3.DHCP协议允许网络上配置多台DHCP服务器,客户机收到多台服务器响应后,挑选一个最先到达的,然后发送一个

DHCPERQUEST包,告诉所有的服务器,接受那一台服务器提供的IP地址。同时客户机还会向网络发送一个ARP包,确认网络上没有机器在使用当前IP,如果则客户机发出一个包给服务器,服务器会再发送一个包给他。

4.DHCP服务器收到DHCPERQUEST封包后,响应客户机一个DHCPACK包响应。确认IP租约正式生效。

Router>enable (进入特权模式)

Router#configure terminal (进入全局配置模式)

Router(config)#ip dhcp pool ww1(建立DHCP地址池命名,并进入DHCP配置模式)

Router(dhcp-config)#network 202.96.123.25 255.255.255.0(配置IP地址池的子网地址和掩码)

Router(dhcp-config)#ip dhcp excluded-address 192.168.10.2 192.168.10.254 (配置保留地址-除外)

Router(dhcp-config)#default-router address 192.168.10.1 (配置默认网关,最多8个)

Router(dhcp-config)#domain-name https://www.wendangku.net/doc/475259945.html, (配置IP地址池的域名系统)

Router(dhcp-config)#dns-server address 192.168.10.0 (配置IP地址池域名服务器)

Router(dhcp-config)#lease dd hh mm (配置租用时间,如:lease 0 8 为8个小时。)

Router(dhcp-config)#no ip conflict loggin (取消地址冲突记录)

实例:某公司网络管理员使用DHCP服务器对公司内部主机的IP地址进行管理。在某DHCP客户机上连续执行“ipconfig /all”和” ipconfig /renew”命令,执行“ipconfig /all”得到的部分信息如图2所示,执行“ipconfig /renew”命令时,在客户机捕获的报文及相关分析如图3所示。请分析图中的信息,补全【11】~【15】的内容。

图3 在DHCP 客户机上执行ipconfig /renew 时捕获的报文及第2条报文的分析 4.图4是校园网是一台主机在命令行模式下执行某个命令时用Sniffer 捕获的数据包 请根据图中信息回答下列问题。

(1) https://www.wendangku.net/doc/475259945.html, 对应的IP 地址是【16】。

(2) 图中①②③处删除了部分显示信息,其中②和③处的信息分别是【17】和【18】。 (3) 主机202.113.64.3的功能是【19】。

(4) 当需要回放捕获的数据包时,可以使用Sniffer 内置的【20】。

◆TCP:

0 =(Conjestion Window Reduced(CWR) NOT set)

华三华为交换机路由器配置常用命令汇总定稿版

华三华为交换机路由器 配置常用命令汇总 HUA system office room 【HUA16H-TTMS2A-HUAS8Q8-HUAH1688】

H3C交换机配置命令大全1、system-view 进入系统视图模式 2、sysname 为设备命名 3、display current-configuration 当前配置情况 4、 language-mode Chinese|English 中英文切换 5、interface Ethernet 1/0/1 进入以太网端口视图 6、 port link-type Access|Trunk|Hybrid 设置端口访问模式 7、 undo shutdown 打开以太网端口 8、 shutdown 关闭以太网端口

9、 quit 退出当前视图模式 10、 vlan 10 创建VLAN 10并进入VLAN 10的视图模式 11、 port access vlan 10 在端口模式下将当前端口加入到vlan 10中 12、port E1/0/2 to E1/0/5 在VLAN模式下将指定端口加入到当前vlan中 13、port trunk permit vlan all 允许所有的vlan通过 H3C路由器配置命令大全华为交换机常用配置实例 H3C交换机路由器telnet和console口登录配置 2009年11月09日星期一 10:00

级别说明 Level 名称 命令 参观 ping、tracert、telnet 1 监控 display、debugging 2 配置 所有配置命令(管理级的命令除外)

CISCO路由器基本配置命令

一、 1.router(config)#router rip 启动rip进程 2.router(conifg-router)#network 172.17.0.0指定rip协议的主网络 3.router(config-router)#passive-interface f0/1把f0/1配置成passive端口 4.router(config-router)#neighbor 172.17.12.67 以单波方式通告rip更新给路由器 5.router(config-if)#ip address 192.168.83.244 255.255.255.0 主ip地址 router(config-if)#ip address 10.33.55.1 255.255.255.0 secondary辅助ip地址二、 1.router(config-router)#version 2将rip配置成版本2 2.router(config-ip)#ip rip send version 1只发rip 1数据包 router(config-ip)#ip rip receive version 2只接收rip 2数据包 3.router(config-router)#no auto-summary 关闭汇总功能 4.router(config-if)#no ip split-horizon关闭水平分割 5.router#show ip ospf database router 192.168.30.10显示路由器LSA通告 router#show ip ospf database network 192.168.17.18显示网络LSA通告 router#show ip ospf database summary 172.16.121.0显示网络汇总LSA通告 router#show ip ospf database asbr-summary显示ASBR汇总LSA通告 router#show ip ospf database external 10.83.10.0显示自主系统外部LSA通告router#show ip ospf database nssa-external显示NSSA外部LSA通告 三、 1.router(config)#router ospf 10配置ospf进程id 2.router(config)#interface loopback0

H3C的路由器配置命令详解

H3C的路由器配置命令详解 en 进入特权模式 conf 进入全局配置模式 in s0 进入serial 0 端口配置 ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 添加ip 地址和掩码,电信分配enca hdlc/ppp 捆绑链路协议hdlc 或者ppp ip unn e0 exit 回到全局配置模式 in e0 进入以太接口配置 ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 添加ip 地址和掩码,电信分配exit 回到全局配置模式 ip route 0.0.0.0 0.0.0.0 s 0 添加路由表 ena password 口令 write exit 以上根据中国电信ddn 专线多数情况应用 普通用户模式 enable 转入特权用户模式 exit 退出配置 help 系统帮助简述 language 语言模式切换 ping 检查网络主机连接及主机是否可达 show 显示系统运行信息 telnet 远程登录功能 tracert 跟踪到目的地经过了哪些路由器 特权用户模式 #? clear 清除各项统计信息

clock 管理系统时钟 configure 进入全局配置模式 debug 开启调试开关 disable 返回普通用户模式 download 下载新版本软件和配置文件 erase 擦除FLASH中的配置 exec-timeout 打开EXEC超时退出开关 exit 退出配置 first-config 设置或清除初次配置标志 help 系统帮助简述 language 语言模式切换 monitor 打开用户屏幕调试信息输出开关 no 关闭调试开关 ping 检查网络主机连接及主机是否可达 reboot 路由器重启 setup 配置路由器参数 show 显示系统运行信息 telnet 远程登录功能 tracert 跟踪到目的地经过了哪些路由器unmonitor 关闭用户屏幕调试信息输出开关write 将当前配置参数保存至FLASH MEM中 全局配置模式 aaa-enable 使能配置AAA(认证,授权和计费) access-list 配置标准访问表 arp 设置静态ARP人口 chat-script 生成一个用在modem上的执行脚本custom-list 创建定制队列列表 dialer-list 创建dialer-list dram-wait 设置DRAM等待状态

cisco路由器配置及维护手册

cisco路由器配置及维护手册 作者:pixfire 一、路由器简单配置 1. 用串行电缆将PC机串口与路由器CONSOLE口连接,用WIN95的超级终端或NETTERM 软件进行配置。PC机串口设置为波特率9600 数据位8 停止位1。 2. 新出厂的路由器启动后会进入自动配置状态。可按提示对相应端口进行配置。 3 . 命令行状态。若不采用自动配置,可在自动配置完成后,题问是否采用以上配置时,回答N。此时进入命令行状态。 4 进入CONFIG模式。在router>键入enable , 进入router # ,再键入config t ,进入 router(config)# 。 5 配置广域端口。在正确连接好与E1端口的电缆线后,在router # 下键入sh controller cbus 。检验端口物理特性,及连线是否正确。之后,进入config模式。 进行以下配置。 int serial <端口号> E1端口号。 ip address <掩码> 广域网地址 bandwidth 2000 传输带宽 clock source line 时钟设定。 6 检验配置。设置完成后,按ctrl Z退出配置状态。键入write mem 保存配置。 用sh conf 检查配置信息。用sh int 检查端口状态。 二、路由器常用命令 2.1 Exec commands: <1-99> 恢复一个会话 bfe 手工应急模式设置 clear 复位功能

clock 管理系统时钟 configure 进入设置模式 connect 打开一个终端 copy 从tftp服务器拷贝设置文件或把设置文件拷贝到tftp服务器上 debug 调试功能 disable 退出优先命令状态 disconnect 断开一个网络连接 enable 进入优先命令状态 erase 擦除快闪内存 exit 退出exce模式 help 交互帮助系统的描述 lat 打开一个本地传输连接 lock 锁定终端 login 以一个用户名登录 logout

路由器配置常用命令汇总

Access-enable允许路由器在动态访问列表中创建临时访问列表入口 Access-group把访问控制列表(ACL)应用到接口上 Access-list定义一个标准的IP ACL Access-template在连接的路由器上手动替换临时访问列表入口 Appn向APPN子系统发送命令 Atmsig执行ATM信令命令 B 手动引导操作系统 Bandwidth 设置接口的带宽 Banner motd 指定日期信息标语 Bfe 设置突发事件手册模式 Boot system 指定路由器启动时加载的系统映像 Calendar 设置硬件日历 Cd 更改路径 Cdp enable 允许接口运行CDP协议 Clear 复位功能 Clear counters 清除接口计数器 Clear interface 重新启动接口上的件逻辑 Clockrate 设置串口硬件连接的时钟速率,如网络接口模块和接口处理器能接受的速率Cmt 开启/关闭FDDI连接管理功能 Config-register 修改配置寄存器设置 Configure 允许进入存在的配置模式,在中心站点上维护并保存配置信息 Configure memory 从NVRAM加载配置信息 Configure terminal 从终端进行手动配置 Connect 打开一个终端连接

Copy 复制配置或映像数据 Copy flash tftp 备份系统映像文件到TFTP服务器 Copy running-config startup-config 将RAM中的当前配置存储到NVRAM Copy running-config tftp 将RAM中的当前配置存储到网络TFTP服务器上 Copy tftp flash 从TFTP服务器上下载新映像到Flash Copy tftp running-config 从TFTP服务器上下载配置文件 Debug 使用调试功能 Debug dialer 显示接口在拨什么号及诸如此类的信息 Debug ip rip 显示RIP路由选择更新数据 Debug ipx routing activity 显示关于路由选择协议(RIP)更新数据包的信息 Debug ipx sap 显示关于SAP(业务通告协议)更新数据包信息 Debug isdn q921 显示在路由器D通道ISDN接口上发生的数据链路层(第2层)的访问过程 Debug ppp 显示在实施PPP中发生的业务和交换信息 Delete 删除文件 Deny 为一个已命名的IP ACL设置条件 Dialer idle-timeout 规定线路断开前的空闲时间的长度 Dialer map 设置一个串行接口来呼叫一个或多个地点 Dialer wait-for-carrier-time 规定花多长时间等待一个载体 Dialer-group 通过对属于一个特定拨号组的接口进行配置来访问控制 Dialer-list protocol 定义一个数字数据接受器(DDR)拨号表以通过协议或ACL与协议的组合来控制控制拨号 Dir 显示给定设备上的文件 Disable 关闭特许模式 Disconnect 断开已建立的连接

Cisco路由器的基本配置命令

Cisco路由器的基本配置命令 Cisco 路由器的基本配置命令 一(实训目的 1(掌握路由器的连接方式和使用基本规则。 2(掌握路由器的基本配置命令。 二(实训器材及环境 1(安装 Windows 2000 Server 系统的计算机一台。 2(安装模拟软件 Boson Netsim 5.31。 3(模拟环境如下: 图 11-1 实验拓扑环境 三(实训理论基础 1(路由器的基本配置语句 (1)配置路由器名字和特权密码: Router1> enable Router1# conf t Router1(config)# hostname R1 R1(config)# enable secret 123456
b5E2RGbCAP
(2)配置路由器的 Ethernet 端口:
R1(config)# interface e0 R1(config-if)# ip address 192.168.1.1 255.255.255.0 p1EanqFDPw R1(config-if)# no shutdown (3)配置路由器的 Serial 端口(DTE 端):DXDiTa9E3d R1(config)# interface s0 R1(config-if)# ip address 10.0.0.1 255.0.0.0 R1(config-if)# no shutdown (4)配置路由器的 Serial 端口(DCE 端):
RTCrpUDGiT
R2(config)# interface s0 R2(config-if)# ip address 10.0.0.2 255.0.0.0 R2(config-if)# clock rate 64000 R2(config-if)# no shutdown 2(路由器可以有多种类型的端口,用于连接 不同的网络,常用的有以太网端口(Ethernet)、快速以太网端口 (FastEthernet)、高速同步串口(Serial)等。有的端口是固定端口,有的端
5PCzVD7HxA
- 1 -

H3C路由器配置命令详解

华为H3C路由器交换机配置命令详解 2009-12-28 22:40:13| 分类: Quidway-h3c|举报|字号订阅 交换机命令 [Quidway]super password 修改特权用户密码 [Quidway]sysname 交换机命名 [Quidway]interface ethernet 0/1 进入接口视图 [Quidway]interface vlan x 进入接口视图 [Quidway-Vlan-interfacex]ip address 10.65.1.1 255.255.0.0 配置VLAN的IP地址[Quidway]ip route-static 0.0.0.0 0.0.0.0 10.65.1.2 静态路由=网关 [Quidway]user-interface vty 0 4 进入虚拟终端 [S3026-ui-vty0-4]authentication-mode password 设置口令模式 [S3026-ui-vty0-4]set authentication-mode password simple 222 设置口令 [S3026-ui-vty0-4]user privilege level 3 用户级别 [Quidway-Ethernet0/1]duplex {half|full|auto} 配置端口工作状态[Quidway-Ethernet0/1]speed {10|100|auto} 配置端口工作速率[Quidway-Ethernet0/1]flow-control 配置端口流控 [Quidway-Ethernet0/1]mdi {across|auto|normal} 配置端口平接扭接[Quidway-Ethernet0/1]port link-type {trunk|access|hybrid} 设置端口工作模式[Quidway-Ethernet0/1]undo shutdown 激活端口 [Quidway-Ethernet0/2]quit 退出系统视图 [Quidway]vlan 3 创建VLAN [Quidway-vlan3]port ethernet 0/1 to ethernet 0/4 在VLAN中增加端口[Quidway-Ethernet0/2]port access vlan 3 当前端口加入到VLAN [Quidway-Ethernet0/2]port trunk permit vlan {ID|All} 设trunk允许的VLAN [Quidway-Ethernet0/2]port trunk pvid vlan 3 设置trunk端口的PVID [Quidway]monitor-port 指定镜像端口[Quidway]port mirror 指定被镜像端口[Quidway]port mirror int_list observing-port int_type int_num 指定镜像和被镜像[Quidway]description string 指定VLAN描述字符[Quidway]description 删除VLAN描述字符[Quidway]display vlan [vlan_id] 查看VLAN设置 [Quidway]stp {enable|disable} 设置生成树,默认关闭[Quidway]stp priority 4096 设置交换机的优先级[Quidway]stp root {primary|secondary} 设置为根或根的备份[Quidway-Ethernet0/1]stp cost 200 设置交换机端口的花费 [SwitchA-vlanx]isolate-user-vlan enable 设置主vlan [SwitchA]Isolate-user-vlan secondary 设置主vlan包括的子vlan [Quidway-Ethernet0/2]port hybrid pvid vlan 设置vlan的pvid

华为企业级路由器配置命令大全

华为华为路由器交换机配置命令大全 一、计算机命令 PCAlogin:root;使用root用户 password:linux;口令是linux #shutdown-hnow;关机 #init 0;关机 #logout;用户注销 #login;用户登录 #ifconfig;显示IP地址 #ifconfig eth0 netmask;设置IP地址 #ifconfig eht0 netmask down;禁用IP地址 #route add 0.0.0.0 gw;设置网关 #route del 0.0.0.0 gw;删除网关 #route add default gw;设置网关 #route del default gw;删除网关 #route;显示网关 #ping;发ECHO包 #telnet;远程登录 二、华为路由器交换机配置命令:交换机命令 [Quidway]dis cur;显示当前配置 [Quidway]display current-configuration;显示当前配置 [Quidway]display interfaces;显示接口信息 [Quidway]display vlan;显示vlan信息 [Quidway]display version;显示版本信息 [Quidway]super password;修改特权用户密码 [Quidway]sysname;交换机命名 [Quidway]interface ethernet0/1;进入接口视图 [Quidway]interface vlan x;进入接口视图 [Quidway-Vlan-interfacex]ip address 10.65.1.1 255.255.0.0;配置VLAN的IP地址[Quidway]Ip route-static 0.0.0.0 0.0.0.0 10.65.1.2;静态路由=网关[Quidway]rip; rip协议 [Quidway]local-user ftp [Quidway]user-interface vty 0 4;进入虚拟终端 [S3026-ui-vty0-4]authentication-mode password;设置口令模式 [S3026-ui-vty0-4]set authentication-mode password simple 222;设置口令 [S3026-ui-vty0-4]user privilege level 3;用户级别 [Quidway]interface ethernet0/1;进入端口模式 [Quidway]int e0/1;进入端口模式 [Quidway-Ethernet0/1]duplex{half|full|auto};配置端口工作状态 [Quidway-Ethernet0/1]speed{10|100|auto};配置端口工作速率 [Quidway-Ethernet0/1]flow-control;配置端口流控

路由器常用命令

cisco路由器常用命令 1:三大模式 router> 用户模式 router > enable 进入特权模式 router # router > enable 进入全局配置模式 router #configure terminal router (conf)# 2:其它模式 Router(config)#interface f1/0 进入接口配置模式Router(config-if)# Router(config)#interface f1/0.1 进入子接口配置模式Router(config-subif)# Router(config)#line console 0 进入line模式Router(config-line)# Router(config)#router rip 进入路由模式Router(config-router)# 3:路由器命名 hostname routera,以routerA为例 router > enable router #configure terminal router(conf)#hostname routerA routera (conf)# 4:配置各类密码 配置特权模式密码(使能口令) enable password cisco,以cisco为例 router > enable router #configure terminal router(conf)#hostname routerA routerA (conf)# enable password cisco 设置VTY(虚拟终端接口)密码 Router(config)#line vty 0 1

CISCO路由器配置手册----帧中继(Frame Relay)配置

CISCO路由器配置手册----Frame Relay 1. 帧中继技术 帧中继是一种高性能的WAN协议,它运行在OSI参考模型的物理层和数据链路层。它是一种数据包交换技术,是X.25的简化版本。它省略了X.25的一些强健功能,如提供窗口技术和数据重发技术,而是依靠高层协议提供纠错功能,这是因为帧中继工作在更好的WAN设备上,这些设备较之X.25的WAN设备具有更可靠的连接服务和更高的可靠性,它严格地对应于OSI参考模型的最低二层,而X.25还提供第三层的服务,所以,帧中继比X.25具有更高的性能和更有效的传输效率。 帧中继广域网的设备分为数据终端设备(DTE)和数据电路终端设备(DCE),Cisco 路由器作为 DTE设备。 帧中继技术提供面向连接的数据链路层的通信,在每对设备之间都存在一条定义好的通信链路,且该链路有一个链路识别码。这种服务通过帧中继虚电路实现,每个帧中继虚电路都以数据链路识别码(DLCI)标识自己。DLCI的值一般由帧中继服务提供商指定。帧中继即支持PVC也支持SVC。 帧中继本地管理接口(LMI)是对基本的帧中继标准的扩展。它是路由器和帧中继交换机之间信令标准,提供帧中继管理机制。它提供了许多管理复杂互联网络的特性,其中包括全局寻址、虚电路状态消息和多目发送等功能。 2. 有关命令: 端口设置 任务命令 设置Frame Relay封装encapsulation frame-relay[ietf] 1 设置Frame Relay LMI类型frame-relay lmi-type {ansi | cisco | q933a}2 设置子接口interface interface-type interface-number.subinterface -number [multipoint|point-to-point] 映射协议地址与DLCI frame-relay map protocol protocol-address dlci

路由器配置命令详细列表

启动接口,分配IP地址 router> router> enable router# router# configure terminal router(config)# router(config)# interface Type Port router(config-if)# no shutdown router(config-if)# ip address IP-Address Subnet-Mask router(config-if)# ^z [编辑] 配置RIP路由协议:30秒更新一次

router(config)# router rip router(config-if)# network Network-Number <——通告标准A,B,C类网——> router(config-if)# ^z [编辑] 配置IGRP路由协议:90秒更新一次 router(config)# router igrp AS-Number <—— AS-Number范围1~65535——> router(config-if)# network Network-Number <——通告标准A,B,C类网——> router(config-if)# ^z [编辑] 配置Novell IPX路由协议:Novell RIP 60秒更新一次router(config)# ipx routing [node address] router(config)# ipx maximum-paths Paths <——设置负载平衡,范围1~512——>

router(config)# interface Type Port router(config-if)# ipx network Network-Number [encapsulation encapsulation-type] [secondary] <——通告标准A,B,C类网——> router(config-if)# ^z [编辑] 配置DDR: router(config)# dialer-list Group-Number protocol Protocol-Type permit [list ACL-Number] router(config)# interface bri 0 router(config-if)# dialer-group Group-Number router(config-if)# dialer map Protocol-Type Next-Hop-Address name Hostname Telphone-Number router(config-if)# ^z

思科交换机路由器命令大全

思科交换机路由器命令 大全 YUKI was compiled on the morning of December 16, 2020

1. 交换机支持的命令:交换机基本状态: 交换机口令设置: switch>enable ;进入特权模式switch#config terminal ;进入全局配置模式 switch(config)#hostname ;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口 令switch(config)#enable password xxa ;设置特权非 密口令switch(config)#line console 0 ;进入控制台 口switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令 xxswitch#exit ;返回命令 交换机VLAN设置:

switch(vlan)#vlan 2 ;建VLAN 2switch(vlan)#no vlan 2 ;删vlan 2switch(config)#int f0/1 ;进入端 口1switch(config-if)#switchport access vlan 2 ; 当前端口加入vlan 2switch(config-if)#switchport mode trunk ;设置为干线switch(config- if)#switchport trunk allowed vlan 1,2 ;设置允许 的vlanswitch(config-if)#switchport trunk encap dot1q ;设置vlan 中继switch(config)#vtp domain ;设置发vtp域名switch(config)#vtp password ;设置发vtp密码switch(config)#vtp mode server ;设置发vtp模式switch(config)#vtp mode client ;设置发vtp模式 交换机设置IP地址: 交换机显示命令:

华三华为交换机-路由器配置常用命令汇总

欢迎阅读H3C交换机配置命令大全 1、system-view 进入系统视图模式 2、sysname 为设备命名 3、display current-configuration 当前配置情况 4、language-mode Chinese|English 中英文切换 5、interface Ethernet 1/0/1 进入以太网端口视图 6、port link-type Access|Trunk|Hybrid 设置端口访问模式 7、undo shutdown 打开以太网端口 8、shutdown 关闭以太网端口 9、quit 退出当前视图模式 10、vlan 10 创建VLAN 10并进入VLAN 10的视图模式 11、port access vlan 10 在端口模式下将当前端口加入到vlan 10中 12、port E1/0/2 to E1/0/5 在VLAN模式下将指定端口加入到当前vlan中 13、port trunk permit vlan all 允许所有的vlan通过 H3C路由器配置命令大全华为交换机常用配置实例 H3C交换机路由器telnet和console口登录配置 2009年11月09日星期一 10:00 级别说明 Level 名称 命令 参观 ping、tracert、telnet 1 监控 display、debugging

2 配置 所有配置命令(管理级的命令除外) 3 管理 文件系统命令、FTP命令、TFTP命令、XMODEM命令 telnet仅用密码登录,管理员权限 [Router]user-interface vty 0 4[Router-ui-vty0-4]user privilege level 3[Router-ui-vty0-4]set authentication password simple abc telnet仅用密码登录,非管理员权限 [Router]super password level 3 simple super [Router]user-interface vty 0 4[Router-ui-vty0-4]user privilege level 1[Router-ui-vty0-4]set authentication password simple abc telnet使用路由器上配置的用户名密码登录,管理员权限 [Router]local-user admin password simple admin[Router]local-user admin service-type telnet[Router]local-user admin level 3 [Router]user-interface vty 0 4[Router-ui-vty0-4]authentication-mode local telnet使用路由器上配置的用户名密码登录,非管理员权限 [Router]super password level 3 simple super [Router]local-user manage password simple manage[Router]local-user manage service-type telnet[Router]local-user manage level 2 [Router]user-interface vty 0 4[Router-ui-vty0-4]authentication-mode local 对console口设置密码,登录后使用管理员权限 [Router]user-interface con 0[Router-ui-console0]user privilege level 3[Router-ui-console0]set authentication password simple abc 对console口设置密码,登录后使用非管理员权限 [Router]super password level 3 simple super [Router]user-interface con 0[Router-ui-console0]user privilege level 1[Router-ui-console0]set authentication password simple abc 对console口设置用户名和密码,登录后使用管理员权限 [Router]local-user admin password simple admin[Router]local-user admin service-type terminal[Router]local-user admin level 3 [Router]user-interface con 0[Router-ui-console0]authentication-mode local 对console口设置用户名和密码,登录后使用非管理员权限 [Router]super password level 3 simple super [Router]local-user manage password simple manage[Router]local-user

路由器常用配置命令

Cisco常用配置命令Cisco常用配置命令 一.交换机的基本配置 C2950# config terminal 进入全局配置模式 show interface fastethernet0/1 查看端口0/1的配置结果 show interface fastethernet0/1 status 查看端口0/1的状态 show mac-address-table 查看整个MAC地址表 clear mac-address-table restricted static 清除限定性地址 C2950(config)# hostname 2950A / 设置主机名为2950A interface f0/23 / 进入端口23的配置模式 enable password cisco / 设置enable password为cisco enable secret cisco1 / 设置enable secret为cisco1 ip address 192.168.1.1 255.255.255.0 / 设置交换机IP 地址 ip default-gateway 192.168.1.254 / 设置默认网关 ip domain-name https://www.wendangku.net/doc/475259945.html, / 设置域名 ip name-server 200.0.0.1 / 设置域名服务器 配置查看MAC地址表 mac-address-table ? mac-address-table aging-time 100 / 设置超时是时间为100s mac-address-table permanent https://www.wendangku.net/doc/475259945.html, /f0/3 加入永久地址mac-address-table restricted static 0000.0c02.bbcc / f0/6 f0/7 加入静态地址 end show mac-address-table /查看整个Mac地址表 clear mac-address-table restricted static C2950(config-if)# interface fastethernet0/1 /进入接口F0/1子配置模式 interface Ethernet0 /进入以太网口0子配置模式 no shutdown /激活接口 speed ? /查看speed命令的子命令 speed 100 /设置该端口速率为100Mb/s dulplex full/half/auto /设置该端口为全双工 description TO_PC1 /设置该端口描述为TO_PC1 show interface fastethernet 0/1 /查看端口0/1的配置结果 show interface fastethernet 0/1 status /查看端口0/1的状态 配置VTP和STP 一. 配置VTP 2950A #vlan database /进入VLAN配置子模式 show vtp status /查看VTP设置信息 show vlan /查看VLAN配置信息 copy running-config startup-config /保存配置文件 2950A(vlan)#vtp server/client /设置本交换机为server/client模式

(完整版)思科路由器查看配置命令.doc

思科路由器查看配置命令 show run// 看运行状况 show ip route// 看路由表 show int// 看断口 * show ip int br// 看端口 ip 地址 show cdp nei// 察看 cdp 邻居 show ip pro// 察看 ip 协议 查看配置信息用 show 命令,该命令可以在用户模式和特权模式下执行,且在特权模式下看 到的信息比用户模式多。 show 命令很多,常用的有: 1、查看运行配置文件: Router#show running-config 运行配置文件 running-config 位于路由器的 RAM 中,存放的是路由器当前使用的配置信息。 2、查看启动配置文件: Router#show startup-config 启动配置文件 startup-config 位于路由器的 NVRAM 中,可以长期保存。它在启动路由器时装入 RAM ,成为 running-config 。 3、查看路由器的版本信息: Router#show version' 4、查看路由器的接口状态: Router#show ip interface brief 如果接口状态标识为“ Down ”,表示此接口未激活,如果标识为“ Up”,表示此接口已经激活。 5、查看路由表:

Router#show ip route 通过路由表可以看出该路由器已经识别的网络。 6、查看 NAT 翻译情况: Router#show ip nat translation 应该先进行内网与外网的通讯(如:用 ping 命令 ),然后再查看,才能看到翻译情况。

路由器配置命令大全

路由器配置命令大全 视图模式介绍: 普通视图router> 特权视图router# /在普通模式下输入enable 全局视图router(config)# /在特权模式下输入config t 接口视图router(config-if)# /在全局模式下输入int 接口名称例如int s0或int e0 路由协议视图router(config-route)# /在全局模式下输入router 动态路由协议名称 1、基本配置: router>enable /进入特权模式 router#conf t /进入全局配置模式 router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字 router(config)#enable password /设置特权口令 router(config)#no ip domain lookup /不允许路由器缺省使用DNS解析命令 router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密 router(config)#line vty 0 4 /进入设置telnet服务模式 router(config-line)#password xxx /设置telnet的密码 router(config-line)#login /使能可以登陆 router(config)#line con 0 /进入控制口的服务模式 router(config-line)#password xxx /要设置console的密码 router(config-line)#login /使能可以登陆 2、接口配置: router(config)#int s0 /进入接口配置模式serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口) router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码 router(config-if)#enca hdlc/ppp 捆绑链路协议hdlc 或者ppp 思科缺省串口封装的链路层协议是HDLC所以在show run配置的时候接口上的配置没有,如果要封装为别的链路层协议例如PPP/FR/X25就是看到接口下的enca ppp或者enca fr router(config)#int loopback /建立环回口(逻辑接口)模拟不同的本机网段 router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码给环回口 在物理接口上配置了ip地址后用no shut启用这个物理接口反之可以用shutdown管理性的关闭接口 3、路由配置: (1)静态路由 router(config)#ip route xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 下一条或自己的接口 router(config)#ip route 0.0.0.0 0.0.0.0 s 0 添加缺省路由 (2)动态路由 rip协议 router(config)#router rip /启动rip协议 router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段 router(config-router)#version 2 转换为rip 2版本 router(config-router)#no auto-summary /关闭自动汇总功能,rip V2才有作用 router(config-router)# passive-int 接口名/启动本路由器的那个接口为被动接口 router(config-router)# nei xxx.xxx.xxx.xxx /广播转单播报文,指定邻居的接ip,

相关文档