R1:
基础配置:
interface GigabitEthernet 0/0/1
ip address 192.168.1.254 24
quit
interface GigabitEthernet 0/0/2
ip address 10.0.0.1 30
interface GigabitEthernet 0/0/0
ip address 23.0.0.2 30
quit
静态配置:
ip route-static 192.168.2.254 24 10.0.0.2
ip route-static 0.0.0.0 0 0.0.0.0 10.0.0.2
R2:
基础配置:
interface GigabitEthernet 0/0/1
ip address 192.168.2.254 24
quit
interface GigabitEthernet 0/0/0
ip address 10.0.0.2 30
静态配置:
ip route-static 192.168.1.254 24 10.0.0.1
ip route-static 0.0.0.0 0.0.0.0 23.0.0.1
R3:
基础配置:
interface GigabitEthernet 0/0/1
ip address 23.0.0.1 30
quit
- 使用 display iprouting-table 命令查看其P路由表。
评论 (0)