很容易配置的,如下命令,可以直接复制到命令行上的:
假如Router1的fa0/0和Router0的fa0/0相连,而Router2的fa0/1口和Router0的fa0/1相连。
Router1
enable
configure terminal
interface fastethernet0/0
ip address 192.168.0.1 255.255.255.0
no shutdown
exit
ip route 0.0.0.0 0.0.0.0 192.168.0.2
Router0
enable
configure terminal
interface fastethernet0/0
ip address 192.168.0.2 255.255.255.0
no shutdown
interface fastethernet0/1
ip address 192.168.1.1 255.255.255.0
no shutdown
exit
ip route 0.0.0.0 0.0.0.0 192.168.0.1 10
ip route 0.0.0.0 0.0.0.0 192.168.1.2 20
Router2
enable
configure terminal
interface fastethernet0/1
ip address 192.168.1.2 255.255.255.0
no shutdown
exit
ip route 0.0.0.0 0.0.0.0 192.168.1.1
router0 与 router1互联的两个接口要在同一个网段,router0与router2互联的两个接口要在同一网段,然后在router0上开启静态路由或动态路由
在三个路由器的接口上配置各网段的IP地址,然后开启静态或动态路由。
仅供参考
由器 三个