当前位置:首页 » 数据仓库 » 怎么查看rip的配置
扩展阅读
webinf下怎么引入js 2023-08-31 21:54:13
堡垒机怎么打开web 2023-08-31 21:54:11

怎么查看rip的配置

发布时间: 2022-08-06 13:09:04

1. 华为交换机配置好以后,用什么命令查看以配置的信息。

华为交换、路由器常见命令

路由器基本配置命令举例
[Quidway]sysname router_name 命名路由器(或交换机)
[Quidway]delete 删除Flash ROM中的配置
[Quidway]save 将配置写入Flash ROM
[Quidway]interface serial 0 进入接口配置模式
[Quidway]quit 退出接口模式到系统视图
[Quidway]shutdown/undo shutdown 关闭/重启接口
[Quidway]ip address ip_address subnet_mask 为接口配置IP地址和子网掩码
[Quidway]display version 显示VRP版本号
[Quidway]display current-configuration 显示系统运行配置信息
[Quidway]display interfaces 显示接口配置信息
[Quidway]display ip routing 显示路由表
[Quidway]ping ip_address 测试网络连通性
[Quidway]tracert ip_address 测试数据包从主机到目的地所经过的网关
[Quidway]debug all 打开所有调试信息
[Quidway]undo debug all 关闭所有调试信息
[Quidway]info-center enable 开启调试信息输出功能
[Quidway]info-center console bugging 将调试信息输出到PC
[Quidway]info-center monitor bugging 将调试信息输出到Telnet终端或哑终端

换机配置命令举例(大括号{}中的选项为单选项,斜体字部分为参数值

[Quidway]super password password 修改特权模式口令
[Quidway]sysname switch_name 命名交换机(或路
[Quidway]interface ethernet 0/1 进入接口视图
[Quidway]quit 退出系统视图
[Quidway-Ethernet0/1]plex {half|full|auto} 配置接口双工工
[Quidway-Ethernet0/1]speed {10|100|auto} 配置接口速率
[Quidway-Ethernet0/1]flow-control 开启流控制
[Quidway-Ethernet0/1]mdi {across|normal|auto} 配置MDI/MDIX
[Quidway-Ethernet0/1]shutdown/undo shutdown 关闭/重启端口

VLAN基本配置命令(以Quidway S3026为例) [Quidway]vlan 3 创建并进入VLAN配置模式,缺省时系统将
所有端口加入VLAN 1,这个端口既不能被创建也不能被删除。
[Quidway]undo vlan 3 删除一个VLAN
[Quidway-vlan3]port ethernet 0/1 to ethernet 0/4 给VLAN增加/删除以太网接口
[Quidway-Ethernet0/2]port access vlan 3 将本接口加入到指定VLAN id [Quidway-Ethernet0/2]port link-type {access|trunk|hybrid} 设置端口工作方式,access(缺省)不支持802.1q帧的传送,而trunk支持(用于Switch间互连),hybrid和trunk的区别在于 trunk
只允许缺省VLAN的报文发送时不打标签,而hybrid允许多个VLAN报文发送时不打标签。

端口聚合配置命令
[Quidway]link-aggregation ethernet 0/7 to ethernet 0/10 {ingress|both} 配置端口聚合
Port_num1为端口聚合组的起始端口号,Port_num2为终止端口号
ingress为接口入负荷分担方式,both为接口出负荷分担方式。

STP基本配置命令
[Quidway]stp {enable|disable} 开启/关闭 STP 功能,默认关闭,开启后所有端口都参与STP 计算。
[Quidway-Ethernet0/3]stp disable 关闭指定接口上的STP功能,如某些网络不存在环路可以关闭STP。

PPP配置命令
[Quidway-Serial0]link-protocol ppp 封装PPP协议
[Quidway-Serial0]ppp authentication-mode {pap|chap} 设置验证类型
[Quidway]local-user username password {simple|cipher} password 配置用户列表
- PAP验证配置:
主验证方
[Quidway]local-user username password {simple|cipher} password 配置用户列表
[Quidway-Serial0]ppp authentication-mode pap
被验证方
[Quidway-Serial0]ppp pap local-user username password {simple|cipher} password
- CHAP验证配置:
主验证方
[Quidway]local-user username password {simple|cipher} password 配置被验证方用户列表
[Quidway-Serial0]ppp chap host hostname 配置本地名称
[Quidway-Serial0]ppp authentication-mode chap
被验证方
[Quidway]local-user username password {simple|cipher} password 配置主验证方用户列表
[Quidway-Serial0]ppp chap user username 配置本地名称

MP配置命令
[Quidway-Serial0]ppp mp 封装MP协议
[Quidway]ppp mp user username bind virtual-template number 建立用户与虚拟模板的对应关系
[Quidway]interface virtual-template number 配置虚拟接口模板
[Quidway]ppp mp max-bind number 设置虚拟模板最大绑定数(1-100)

帧中继配置命令
[Quidway-Serial0]link-protocol fr {mfr|ietf|nonstandard} 封装帧中继协议:IETF、Cisco兼容
[Quidway-Serial0]fr interface-type {dte|dce|nni} 配置帧中继接口类型,NNI为帧中继交换机之间的接口。若配为DCE或NNI,则须先使能fr switching。
[Quidway-Serial0]fr lmi type {q933a|ansi|cisco-compatible} 配置LMI协议类型
[Quidway-Serial0]fr dlci dlci_number 配置一条本地虚电路号
[Quidway-Serial0]fr map {ip|ipx} protocol-address dlci dlci_number 建立本地DLCI到对端协议地址的映射
[Quidway-Serial0]fr inarp [ip|ipx] [dlci_number] 配置Inverse ARP动态映射
[Quidway]interface type number.subinterface_number 创建并进入子接口配置模式

RIP协议配置命令
[Quidway]display rip 显示RIP配置信息
[Quidway]rip 启动并进入RIP配置模式
[Quidway-rip]network {network_number|all} 在指定网络上使能RIP
[Quidway-rip]peer ip_address 配置报文的定点传送
[Quidway-Ethernet0]rip version {1|2 [bcast|mcast]} 指定RIP版本及传送方式
[Quidway-Serial0]rip work 指定接口工作状态(同rip input,rip output)
[Quidway-rip]auto-summary 配置RIP-2路由聚合
[Quidway-Serial0]rip authentication simple password 配置RIP-2明文认证密码
[Quidway-Serial0]rip authentication md5 key-string string 配置RIP-2 MD5密文认证密码串
[Quidway-Serial0]rip authentication md5 type {nonstandard-compatible|usual} 指定MD5类型
[Quidway]debugging rip packet 打开RIP调试开关
[Quidway]info-center console 将调试信息输出到PC

静态路由配置命令
[Quidway]ip route ip_address subnet_mask {interface_name|gateway_address} [preference preference_value] [reject|black_bone]
[命令说明] reject:任何去往该目的地的报文均被丢弃,通知源主机不可达。
black_bone:任何去往该目的地的报文均被丢弃,不通知源主机。
当只有下一跳的接口是PPP或HDLC接口才能写interface_name,如Serial0,否则只能写gateway_address(下一跳地址)。
[命令举例] [Quidway]ip route 129.1.0.0 16 10.0.0.2
[Quidway]ip route 129.1.0.0 255.255.0.0 10.0.0.2
[Quidway]ip route 129.1.0.0 16 Serial2
[Quidway]ip route 0.0.0.0 0.0.0.0 10.0.0.2 配置缺省路由。

OSPF配置命令
[Quidway]router id ip_address 配置Router ID
[Quidway]ospf enable 启用OSPF协议
[Quidway-Serial0]ospf enable area area_id 配置当前接口所属的OSPF区域

2. 使用哪些命令可以验证RIP路由配置情况

楼上回答的很对,show ip protocol :
Router#sh ip protocols
Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
//更新间隔,和下次更新时间
Sending updates every 30 seconds, next e in 22 seconds
//相关定时器
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
//RIP的发送和接受的版本:都是ver2
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 2 2
Loopback0 2 2
//自动汇总被关闭
Automatic network summarization is not in effect
Maximum path: 4
//network了哪些网段
Routing for Networks:
1.0.0.0
12.0.0.0
Routing Information Sources:
Gateway Distance Last Update
12.1.1.2 120 00:00:09
Distance: (default is 120)

=====================
show ip route rip:这个是用来看通过rip学来的路由:
R2#sh ip route rip
1.0.0.0/32 is subnetted, 1 subnets
R 1.1.1.1 [120/1] via 12.1.1.1, 00:00:05, FastEthernet0/0

=========
如果楼主研究的深的话,还可以看rip的数据库,命令如下:
R2#sh ip rip database
1.0.0.0/8 auto-summary
1.1.1.1/32
[1] via 12.1.1.1, 00:00:05, FastEthernet0/0
2.0.0.0/8 auto-summary
2.2.2.2/32 directly connected, Loopback0
12.0.0.0/8 auto-summary
12.1.1.0/24 directly connected, FastEthernet0/0
R2#

不知道楼主满意否?

3. 请问rip路由协议配置的具体步骤是什么谢谢

1、确定所要配置的网络组网及相关ip规划,然后进行具体的配置。

4. RIP 1配置

楼主你好。
启动RIP进程:router rip
宣告直连网段:network 1.1.1.1(示例)
查看路由协议配置:show ip protocol
使用版本2:version 2
关闭路由自动汇总:no auto-summary。
希望我的回答能帮到你,好运!

5. rip路由协议的配置命令

相关调试命令 :
show ip protocol
show ip route
在全局设置模式下:
1.启动RIP路由
router rip
2.配置RIP路由协议的路由的子网
network 子网地址
3.允许在非广播型网络中进行RIP路由广播
neighbor 相邻路由器相邻端口的IP地址
4.配置RIP路由协议的版本
RIP路由协议有2个版本,在与其它厂商路由器相连时,注意版本要一致,缺省状态下,Cisco路由器接收RIP版本1和2的路由信息,但只发送版本1的路由信息,设置RIP的版本vesion 1或2.另外,还可以控制特定端口发送或接收特定版本的路由信息。

6. 如何查看自己本机原先配置的RIP是多少

Router#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback1
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback3

show ip route rip
show ip rip database

7. 如何看debug ip rip

debug ip rip命令显示了发送和接收到的RIP路由选择更新.
可以查看路由器使用了RIP的V1版还是V2版本.
还有发送和接收的更新信息.

和你分享一下我的CISCO基本命令集
CISCO基本命令集
show protocols
show mem
show ip route
show startup-config
show running-config
show flash
show interfaces
二、 基本路由配置命令
进入:config terminal/memory/network
配置网络时常采用的命令:和load
1. 标识:hostname 标识名
2. 启动标识:banner 启动标识
3. 接口:interface 端口号
4. 密码:line 0 6
login
passwd 口令
enable password/secret 口令
5. 接口:
1)配置端口
interface 端口号
clock rate 时钟速率(64000)/* 在串口中配置 */
bandwidth 带宽(缺省56) /* 在串口中配置 */
media-type 介质类型 /* 在以太网口上 */
early-token release /* 在令牌环网口上 */
ring-speed 16 /* 在令牌环网口上 */
no shutdown
write memory
2)检验端口
show interfaces
show controllers
6. 配置环境
1) 引导方式
boot system flash IOS-filename
boot system tftp IOS-filename tftp-address
boot system rom
2) 配置Register值
config-register 0x2102
7. 查看邻居路由
show cdp interface
show cdp neighbors [detail]
show cdp entry routerA
8. IP Address 配置
Ip address 网络地址 掩码
Ip host 主机名 address
Ip name-se
rver 服务器地址1 服务器地址2 。。。
Ip domain-lookup nsap
Show hosts
Ping 主机名/IP地址
Trace 主机名/IP地址
三、 IP 路由
1. 静态路由
ip routing
ip route 目标网络号 掩码 端口号 [permanent]
2. 缺省路由
ip default-network 网络号
3. 动态路由
1) RIP配置
Router rip
Network 网络号
Show ip route
Show ip protocol
Debug ip
2) OSPF 配置
Router ospf 进程号
Redistribute 其它路由协议
Network 端口网络 反掩码 area 区域号
Area 区域号 range 网络号 掩码
Area 区域号 default-cost 花销值
Ip ospf priority number
Ip ospf cost 花销值
Show ip ospf database
3) BGP 配置
Router bgp 自治域号
Redistribute 其它路由协议
Network 网络号 /* 自治域内 */
Aggregate-address 网络号 掩码 summary-only 汇总网络
Neighbor 相邻网络号 remote-as 自治域号 /* 自治域间的网络 */
四、 流量控制
1) 被动端口
passive interface 端口号
2) 缺省路由
ip default 网络号/端口网络
3) 静态路由
ip route 目标网络号 掩码 端口号
4)ACL过滤表
(全局上) access-list 访问号1 {permit|deny} 反掩码号 [ established]
access-list 访问号2 {permit|deny} IP/TCP协议 源网络 目的
网络
操作符 参数
(端口上)access-group 访问号 in|out
distribute-list 访问号 in|out 端口号
4) Null 0 interface
Ip route address mask null 0
五、 广义网配置
1) PPP
Ppp pap sent-usename 封装
Ppp chap hostname
Ppp chap password
2)X.25
encapsulation x25 [dce]
x25 address
x25 map 协议地址 /*SVC */
x25 pvc pvc号 ip地址 x25地址 /*PVC */
ip switching
x25 route x.121地址 接口 x.121映射地址
2) FrameRelay
Frame-relay local-dlci IP网络号
Frame-relay map 协议地址
Frame-relay lmi-type ansi

8. rip路由配置命令

1、创建RIP进程并进入RIP视图
[Router] rip [ process-id ]
2、在指定网段接口上使能RIP
[Router-rip-1] network network-address [ wildcard-mask ]
3、配置接口工作在抑制状态
[Router-rip-1] silent-interface { interface-type interface-number | all }
4、使能RIP水平分割功能
[Router-Ethernet1/0] rip split-horizon
5、使能RIP毒性逆转功能
[Router-Ethernet1/0] rip poison-reverse
6、指定全局RIP版本
[Router-rip-1] version { 1 | 2 }
7、关闭RIPv2自动路由聚合功能
[Router-rip-1] undo summary
8、配置RIPv2报文的认证
[Router-Ethernet1/0] rip authentication-mode { md5 { rfc2082 { cipher cipher-string | plain plain-string } key-id | rfc2453 { cipher cipher-string | plain plain-string } } | simple { cipher cipher-string | plain plain-string } }