在路由器配置一个vlan1的地址172.16.0.1,然后把pc的网关设为172.16.0.1,就可以ping通10.0.0.2 ,你路由器的那头肯定还要有一个设备。
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int vlan 1
Router(config-if)#ip addr 172.16.0.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
Router(config-if)#int f0/3/0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/3/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Router(config-if)#int g0/0
Router(config-if)#ip addr 10.0.0.2 255.255.255.0
Router(config-if)#no shut