配置逻辑路由器
2012-02-14 21:52
375 查看
逻辑路由的接口配置
edit logical-routers
edit r8
set interfaces em1 unit 15 vlan-id 15 family inet address 192.168.15.1/24
或者
set interfaces em1.28 vlan-id 15 family inet address 192.168.28.1/24
逻辑路由的默认路由配置:
实验拓扑:
R1-----------------4.14--------------------4.13----------------R3-----------------2.5-----------------2.6------------------R4
R1:
edit logical-routers r1
set interface em1 unit 12 vlan-id 12 family inet address 10.0.4.5/30
set interface em3 unit 13 vlan-id 13 family inet address 10.0.4.14/30
edit routing-options
set static route 0.0.0.0/0 next-hop 10.0.4.13
R3:
edit logical-routers r3
set interface em3 unit 31 vlan-id 31 family inet address 10.0.4.13/30
set interface em3 unit 34 vlan-id 34 family inet address 10.0.2.5/30
R4:
edit logical-routers r4
set interface em4 unit 43 vlan-id 43 family inet address 10.0.2.6/30
edit routing-options
set static route 0.0.0.0/0 next-hop 10.0.2.5
逻辑路由测试:
gouzhongxing@gouzhongxing> ping 10.0.4.5 logical-router r1
PING 10.0.4.5 (10.0.4.5): 56 data bytes
64 bytes from 10.0.4.5: icmp_seq=0 ttl=64 time=0.549 ms
64 bytes from 10.0.4.5: icmp_seq=1 ttl=64 time=0.084 ms
64 bytes from 10.0.4.5: icmp_seq=2 ttl=64 time=0.104 ms
64 bytes from 10.0.4.5: icmp_seq=3 ttl=64 time=0.102 ms
64 bytes from 10.0.4.5: icmp_seq=4 ttl=64 time=0.111 ms
64 bytes from 10.0.4.5: icmp_seq=5 ttl=64 time=0.848 ms
----------------------------------------------------------------------------------------------------------------------------------------
逻辑路由的静态路由配置:
实验拓扑:
R1-----------------4.14--------------------4.13----------------R3-----------------2.5-----------------2.6------------------R4
R1:
edit logical-routers r1
set interface em1 unit 12 vlan-id 12 family inet address 10.0.4.5/30
set interface em3 unit 13 vlan-id 13 family inet address 10.0.4.14/30
edit routing-options
set static route 10.0.2.0/30 next-hop 10.0.4.13
R3:
edit logical-routers r3
set interface em3 unit 31 vlan-id 31 family inet address 10.0.4.13/30
set interface em3 unit 34 vlan-id 34 family inet address 10.0.2.5/30
R4:
edit logical-routers r4
set interface em4 unit 43 vlan-id 43 family inet address 10.0.2.6/30
edit routing-options
set static route 10.0.4.0/30 next-hop 10.0.2.5
逻辑路由测试:
gouzhongxing@gouzhongxing> ping 10.0.4.5 logical-router r1
PING 10.0.4.5 (10.0.4.5): 56 data bytes
64 bytes from 10.0.4.5: icmp_seq=0 ttl=64 time=0.549 ms
64 bytes from 10.0.4.5: icmp_seq=1 ttl=64 time=0.084 ms
64 bytes from 10.0.4.5: icmp_seq=2 ttl=64 time=0.104 ms
64 bytes from 10.0.4.5: icmp_seq=3 ttl=64 time=0.102 ms
64 bytes from 10.0.4.5: icmp_seq=4 ttl=64 time=0.111 ms
64 bytes from 10.0.4.5: icmp_seq=5 ttl=64 time=0.848 ms
---------------------------------------------------------------
逻辑路由的RIP路由配置:
实验拓扑:
R1-----------------4.14--------------------4.13----------------R3-----------------2.5-----------------2.6------------------R4
R1:
edit logical-routers r1
set interface em1 unit 12 vlan-id 12 family inet address 10.0.4.5/30
set interface em3 unit 13 vlan-id 13 family inet address 10.0.4.14/30
edit protocols
set rip group gouzhongxing neighbor em1.13
R3:
edit logical-routers r3
set interface em3 unit 31 vlan-id 31 family inet address 10.0.4.13/30
set interface em3 unit 34 vlan-id 34 family inet address 10.0.2.5/30
edit protocols
set rip group gouzhongxing neighbor em3.31
set rip group gouzhongxing neighbor em3.34
R4:
edit logical-routers r4
set interface em4 unit 43 vlan-id 43 family inet address 10.0.2.6/30
edit protocols
set rip group gouzhongxing neighbor em4.43
删除ospf协议:
delete protocols ospf
测试:
gouzhongxing@gouzhongxing> ping 10.0.4.5 logical-router r1
PING 10.0.4.5 (10.0.4.5): 56 data bytes
64 bytes from 10.0.4.5: icmp_seq=0 ttl=64 time=0.549 ms
64 bytes from 10.0.4.5: icmp_seq=1 ttl=64 time=0.084 ms
64 bytes from 10.0.4.5: icmp_seq=2 ttl=64 time=0.104 ms
64 bytes from 10.0.4.5: icmp_seq=3 ttl=64 time=0.102 ms
64 bytes from 10.0.4.5: icmp_seq=4 ttl=64 time=0.111 ms
64 bytes from 10.0.4.5: icmp_seq=5 ttl=64 time=0.848 ms
实验成功。
edit logical-routers
edit r8
set interfaces em1 unit 15 vlan-id 15 family inet address 192.168.15.1/24
或者
set interfaces em1.28 vlan-id 15 family inet address 192.168.28.1/24
逻辑路由的默认路由配置:
实验拓扑:
R1-----------------4.14--------------------4.13----------------R3-----------------2.5-----------------2.6------------------R4
R1:
edit logical-routers r1
set interface em1 unit 12 vlan-id 12 family inet address 10.0.4.5/30
set interface em3 unit 13 vlan-id 13 family inet address 10.0.4.14/30
edit routing-options
set static route 0.0.0.0/0 next-hop 10.0.4.13
R3:
edit logical-routers r3
set interface em3 unit 31 vlan-id 31 family inet address 10.0.4.13/30
set interface em3 unit 34 vlan-id 34 family inet address 10.0.2.5/30
R4:
edit logical-routers r4
set interface em4 unit 43 vlan-id 43 family inet address 10.0.2.6/30
edit routing-options
set static route 0.0.0.0/0 next-hop 10.0.2.5
逻辑路由测试:
gouzhongxing@gouzhongxing> ping 10.0.4.5 logical-router r1
PING 10.0.4.5 (10.0.4.5): 56 data bytes
64 bytes from 10.0.4.5: icmp_seq=0 ttl=64 time=0.549 ms
64 bytes from 10.0.4.5: icmp_seq=1 ttl=64 time=0.084 ms
64 bytes from 10.0.4.5: icmp_seq=2 ttl=64 time=0.104 ms
64 bytes from 10.0.4.5: icmp_seq=3 ttl=64 time=0.102 ms
64 bytes from 10.0.4.5: icmp_seq=4 ttl=64 time=0.111 ms
64 bytes from 10.0.4.5: icmp_seq=5 ttl=64 time=0.848 ms
----------------------------------------------------------------------------------------------------------------------------------------
逻辑路由的静态路由配置:
实验拓扑:
R1-----------------4.14--------------------4.13----------------R3-----------------2.5-----------------2.6------------------R4
R1:
edit logical-routers r1
set interface em1 unit 12 vlan-id 12 family inet address 10.0.4.5/30
set interface em3 unit 13 vlan-id 13 family inet address 10.0.4.14/30
edit routing-options
set static route 10.0.2.0/30 next-hop 10.0.4.13
R3:
edit logical-routers r3
set interface em3 unit 31 vlan-id 31 family inet address 10.0.4.13/30
set interface em3 unit 34 vlan-id 34 family inet address 10.0.2.5/30
R4:
edit logical-routers r4
set interface em4 unit 43 vlan-id 43 family inet address 10.0.2.6/30
edit routing-options
set static route 10.0.4.0/30 next-hop 10.0.2.5
逻辑路由测试:
gouzhongxing@gouzhongxing> ping 10.0.4.5 logical-router r1
PING 10.0.4.5 (10.0.4.5): 56 data bytes
64 bytes from 10.0.4.5: icmp_seq=0 ttl=64 time=0.549 ms
64 bytes from 10.0.4.5: icmp_seq=1 ttl=64 time=0.084 ms
64 bytes from 10.0.4.5: icmp_seq=2 ttl=64 time=0.104 ms
64 bytes from 10.0.4.5: icmp_seq=3 ttl=64 time=0.102 ms
64 bytes from 10.0.4.5: icmp_seq=4 ttl=64 time=0.111 ms
64 bytes from 10.0.4.5: icmp_seq=5 ttl=64 time=0.848 ms
---------------------------------------------------------------
逻辑路由的RIP路由配置:
实验拓扑:
R1-----------------4.14--------------------4.13----------------R3-----------------2.5-----------------2.6------------------R4
R1:
edit logical-routers r1
set interface em1 unit 12 vlan-id 12 family inet address 10.0.4.5/30
set interface em3 unit 13 vlan-id 13 family inet address 10.0.4.14/30
edit protocols
set rip group gouzhongxing neighbor em1.13
R3:
edit logical-routers r3
set interface em3 unit 31 vlan-id 31 family inet address 10.0.4.13/30
set interface em3 unit 34 vlan-id 34 family inet address 10.0.2.5/30
edit protocols
set rip group gouzhongxing neighbor em3.31
set rip group gouzhongxing neighbor em3.34
R4:
edit logical-routers r4
set interface em4 unit 43 vlan-id 43 family inet address 10.0.2.6/30
edit protocols
set rip group gouzhongxing neighbor em4.43
删除ospf协议:
delete protocols ospf
测试:
gouzhongxing@gouzhongxing> ping 10.0.4.5 logical-router r1
PING 10.0.4.5 (10.0.4.5): 56 data bytes
64 bytes from 10.0.4.5: icmp_seq=0 ttl=64 time=0.549 ms
64 bytes from 10.0.4.5: icmp_seq=1 ttl=64 time=0.084 ms
64 bytes from 10.0.4.5: icmp_seq=2 ttl=64 time=0.104 ms
64 bytes from 10.0.4.5: icmp_seq=3 ttl=64 time=0.102 ms
64 bytes from 10.0.4.5: icmp_seq=4 ttl=64 time=0.111 ms
64 bytes from 10.0.4.5: icmp_seq=5 ttl=64 time=0.848 ms
实验成功。
相关文章推荐
- OSPF区域中的路由器接口配置
- Cisco路由器安全配置必用10条命令
- 思科路由器交换机配置SSH登陆哪些是必须的配置项?
- 正确配置思科路由器口令从而保障网络安全
- 思科路由器基本配置与常用配置命令(simple for CCNA)
- 第12章 路由器综合路由配置(Cisco Packet Tracer5.3我做不行)
- 思科交换机密码配置和清除思科交换机密码配置 及路由器设置本地登录用户
- 路由器多台配置问题
- 专题一. 交换机与路由器的基本配置
- spring aspectj aop的配置内建逻辑和要点
- 如何备份cisco路由器配置文件
- Cisco2620路由器的配置与维护
- 路由器基本配置命令
- Cisco路由器基本配置
- 配置cisco路由器为DHCP客户端,使之动态获取ip地址
- 华为路由器与CISCO路由器的不同配置步骤
- OSI、MAC地址以及路由器的原理和配置方式
- Cisco 路由器VOIP 配置解析