2241| 6
|
[求助] loopback接口怎么测试 |
3鸿鹄币
最佳答案你的物理端口也需要IP(如果你的物理端口是二层端口,那就是端口所在Vlan 需要IP)并且将你的Loopback IP添加进路由
sw1(config)#int lo0
sw1(config-if)#ip add 1.1.1.1 255.255.255.0
sw1(config-if)#no shut
sw1(config)#int fa0/0
sw1(config-if)#no switchport
sw1(config-if)#ip add 192.168.1.1 255.255.255.0
sw1(config-if)#no shut
sw1(config)#ip route 0.0.0.0 0.0.0.0 f0/0
sw2(config)#int lo0
...
| ||
| ||
| ||
| ||
| ||