CCNA实验之静态路由

2025-12-01 23:11:03

1、首先搭建实验拓扑,如下图所示。

CCNA实验之静态路由

2、为设备配置ip地址

R1:

en

conf t

int f0/0

ip add 10.1.12.1 255.255.255.0

no sh

int loo 0

ip add 1.1.1.1 255.255.255.0

no sh

exit

R2:

en

conf t

int f0/0

ip add 10.1.12.2 255.255.255.0

no sh

int f0/1

ip add 10.1.23.2 255.255.255.0

no sh

int loo 0

ip add 2.2.2.2 255.255.255.0

exit

R3:

en

conf t

int f0/0

ip add 10.1.23.3 255.255.255.0

no sh

int loo 0

ip add 3.3.3.3 255.255.255.0

exit

3、配置静态路由

R1:

ip route 2.2.2.0 255.255.255.0 10.1.12.2

ip route 10.1.23.0 255.255.255.0 10.1.12.2

ip route 3.3.3.0 255.255.255.0 10.1.12.2

R2:

ip route 1.1.1.0 255.255.255.0 10.1.12.1

ip route 3.3.3.0 255.255.255.0 10.1.23.3

R3:

ip route 2.2.2.0 255.255.255.0 10.1.23.2

ip route 10.1.12.0 255.255.255.0 10.1.23.2

ip route 1.1.1.0 255.255.255.0 10.1.23.2

4、以上,静态路由的简单配置基本就完成了,下面做一下测试。这里我给出了从R1上ping3.3.3.3的命令,大家可以在测试一下其他的,验证目前已经全网全通。

CCNA实验之静态路由

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢