在上图的三个器Lab_A,Lab_B,Lab_C中RIP.
Lab_A的配置:
conf t
hostname Lab_A
enable secrect louis
enable password uibe
line console 0
passsword louis
login
line vty 0 4
login
password louis
login
line aux 0
password louis
login
int f0/0
ip add 172.16.10.1 255.255.255.0
no shut
int s 0
ip add 172.16.20.1 255.255.255.0
no shut
router rip
network 172.16.10.0
network 172.16.20.0
end
sh ip protocol
通过最后一个命令你就可以看到RIP已经运行
Lab_B的配置:
conf t
hostname Lab_A
enable secrect louis
enable password uibe
line console 0
passsword louis
login
line vty 0 4
login
password louis
login
line aux 0
password louis
login
int s 0
ip add 172.16.20.2 255.255.255.0
clock rate 64000
no shut
int f0/0
ip add 172.16.30.1 255.255.255.0
no shut
int s 1
ip add 172.16.40.1 255.255.255.0
clock rate 64000
no shut
end
sh run
sh ip protocol
最后两个命令就可以看到配置和RIP已经运行
Lab_C的配置:
conf t
hostname Lab_A
enable secrect louis
enable password uibe
line console 0
passsword louis
login
line vty 0 4
login
password louis
login
line aux 0
password louis
login
int s 0
ip add 172.16.60.2 255.255.255.0
no shut
int f0/0
ip add 172.16.70.1 255.255.255.0
no shut
end
sh run
sh ip protocol
在这里我把串口的时钟全设在了Lab_B上,便于管理
这时你在Lab_A上ping 172.16.60.1 或任一个已经存大的IP都能通,在另外两个ping也能通
还可以用