dhcp---PE1---------PE2
| |
CE1 CE2
| |
client1 client2
PE1与PE2是mpls组网,dhcp server所在接口为非实例接口,CE1及CE2分别加入vpn-instance1与2,现要求终端client1与2通过dhcp 中继获取IP;
服务器10.1.1.0/24 网关PE1
CE1---192.168.1.0/24 网关PE1
CE2---192.168.2.0/24 网关PE2
两个终端client通过dhcp中继获取IP
两个终端client通过dhcp中继获取IP
PE1关键配置:
ip route-static 2.2.2.2 32 20.1.1.2
ip route-static 192.168.1.0 24 vpn-instance 1 192.168.1.2
ip route-static 192.168.2.0 24 20.1.1.2
ip route-static vpn-instance 1 10.1.1.0 24 10.1.1.1 public
bgp 1
peer 2.2.2.2 as-number 1
peer 2.2.2.2 connect-interface LoopBack0
address-family ipv4 unicast
import-route direct
peer 2.2.2.2 enable
address-family vpnv4
peer 2.2.2.2 enable
ip vpn-instance 1
address-family ipv4 unicast import-route direct
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
interface Vlan-interface1
ip address 10.1.1.2 255.255.255.0
interface Vlan-interface2
ip binding vpn-instance 1
ip address 192.168.1.1 255.255.255.0
dhcp select relay
dhcp relay server-address 10.1.1.1
interface Vlan-interface3
ip address 20.1.1.1 255.255.255.0
mpls enable
mpls ldp enable
mpls lsr-id 1.1.1.1
ip vpn-instance 1
route-distinguisher 1:1
vpn-target 1:1 import-extcommunity
vpn-target 1:1 export-extcommunity
PE2关键配置:
ip route-static 1.1.1.1 32 20.1.1.1
ip route-static 192.168.2.0 24 vpn-instance 1 192.168.2.2
ip route-static vpn-instance 1 10.1.1.0 24 20.1.1.1 public
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作