R2 :
conf t
int f0/0
no shutdown
ip add 192.168.1.254 255.255.255.0
end
R1 :
conf t
int f0/0
no shutdown
ip add 192.168.1.1 255.255.255.0
no ip routing
end
conf t
no ip address
end
以上操作只是为了让R1不具备路由功能。
conf t
int f0/0
no shutdown
ip add 192.168.1.254 255.255.255.0
end
注:适应场合为DHCP、开机等情况