静态路由基础配置示例

TanHaX
2023-05-22 / 0 评论 / 256 阅读 / 正在检测是否收录...

静态路由.png

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

打赏

评论 (0)

取消