不使用任何路由协议使3台路由器通信设备硬件

2009-07-09    来源:ZDNET网络频道    
R1---------R2---------R3 R2上什么都不能做。。。 3台路由不能做任何的路由协议。。 让R1和R3通信。。。。。 配置如下: 路由器0配置: en conf t host R1 int s0/0 ip add 192.168.1.1 255.255.255.0 no sh e

  R1---------R2---------R3

  R2上什么都不能做。。。

  3台路由不能做任何的路由协议。。

  让R1和R3通信。。。。。

  配置如下:

  路由器0配置:

  en

  conf t

  host R1

  int s0/0

  ip add 192.168.1.1 255.255.255.0

  no sh

  exit

  ip default-gateway 192.168.1.2(默认网关)

  no ip routing(网关是2层协议,所以要关闭路由功能)

  end

  路由器1配置:

  en

  conf t

  host R2

  int s0/0

  ip add 192.168.1.2 255.255.255.0

  no sh

  exit

  int s0/1

  ip add 192.168.2.1 255.255.255.0

  no sh

  end

  路由器2配置:

  en

  conf t

  host R3

  int s1/0

  ip add 192.168.2.2 255.255.255.0

  no sh

  exit

  ip default-gateway 192.168.2.1(默认网关)

  no ip routing(网关是2层协议,所以要关闭路由功能)

  end

 

1
3