IT技术互动交流平台

交换 路由与防火墙手记(8)

来源:IT165收集  发布日期:2015-11-23 21:13:50

<r2>sy

Enter system view, return user view withCtrl+Z.

[r2]interface e0/0/0

[r2-Ethernet0/0/0]ip address 192.168.30.224

[r2-Ethernet0/0/0]q

[r2]interface e0/0/1

[r2-Ethernet0/0/1]ip address 192.168.40.124

 

<r3>sy

Enter system view, return user view withCtrl+Z.

[r3]interface e0/0/0

[r3-Ethernet0/0/0]ip address 192.168.40.2255.255.255.0

[r3-Ethernet0/0/0]q

[r3]inte e0/0/1

[r3-Ethernet0/0/1]ip address 192.168.20.254255.255.255.0

 

R1自动生成了直连路由

[r1]disp ip routing-table

Route Flags: R - relay, D - download to fib

------------------------------------------------------------------------------

Routing Tables: Public

Destinations : 6 Routes :6

 

Destination/Mask Proto Pre Cost Flags NextHop Interface

 

127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0

127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0

192.168.10.0/24 Direct 0 0 D 192.168.10.254 Ethernet0/0/0

192.168.10.254/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/0

192.168.30.0/24 Direct 0 0 D 192.168.30.1 Ethernet0/0/1

192.168.30.1/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/1

 

[r1]

 

本博客所有内容是原创,如果转载请注明来源

http://blog.csdn.net/myhaspl/

 

静态路由

[r1]ip route-static 192.168.20.0 24 e0/0/1192.168.30.2

[r1]q

<r1>disp ip routing-table

Route Flags: R - relay, D - download to fib

------------------------------------------------------------------------------

Routing Tables: Public

Destinations : 7 Routes :7

 

Destination/Mask Proto Pre Cost Flags NextHop Interface

 

127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0

127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0

192.168.10.0/24 Direct 0 0 D 192.168.10.254 Ethernet0/0/0

192.168.10.254/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/0

192.168.20.0/24 Static 60 0 D 192.168.30.2 Ethernet0/0/1

192.168.30.0/24 Direct 0 0 D 192.168.30.1 Ethernet0/0/1

192.168.30.1/32 Direct 0 0 D 127.0.0.1 Ethernet0/0/1

[r2]ip route-static 192.168.20.0 24 e0/0/1192.168.40.2

[r2]ip route-static 192.168.10.0 24 e0/0/0192.168.30.1

Tag标签: 路由   手记   防火墙  
  • 专题推荐

About IT165 - 广告服务 - 隐私声明 - 版权申明 - 免责条款 - 网站地图 - 网友投稿 - 联系方式
本站内容来自于互联网,仅供用于网络技术学习,学习中请遵循相关法律法规