ESR Series Routers Operation Manual                                                          97 
Solution: 
Create VRF: 
esr(config)# ip vrf bit 
esr(config-vrf)# exit 
 
Create security zone:  
esr(config)# security zone vrf-sec 
esr(config-zone)# ip vrf forwarding bit 
esr(config-zone)# exit 
 
Create rule for a pair of zones and allow all TCP/UDP traffic: 
esr(config)# security zone-pair vrf-sec vrf-sec 
esr(config-zone-pair)# rule 1 
esr(config-zone-rule)# match source-address any 
esr(config-zone-rule)# match destination-address any 
esr(config-zone-rule)# match protocol udp 
esr(config-zone-rule)# match source-port any 
esr(config-zone-rule)# match destination-port any 
esr(config-zone-rule)# action permit 
esr(config-zone-rule)# enable 
esr(config-zone-rule)# exit 
esr(config-zone-pair)# rule 2 
esr(config-zone-rule)# match source-address any 
esr(config-zone-rule)# match destination-address any 
esr(config-zone-rule)# match protocol tcp 
esr(config-zone-rule)# match source-port any 
esr(config-zone-rule)# match destination-port any 
esr(config-zone-rule)# action permit  
esr(config-zone-rule)# enable 
esr(config-zone-rule)# exit 
Create interface mapping, assign IP addresses, specify an inherence to a security zone: 
esr(config)# interface gigabitethernet 1/0/7 
esr(config-if-gi)# ip vrf forwarding bit 
esr(config-if-gi)# ip address 10.20.0.1/24 
esr(config-if-gi)# security-zone vrf-sec 
esr(config-if-gi)# exit 
esr(config)# interface gigabitethernet 1/0/14.10 
esr(config-subif)# ip vrf forwarding bit 
esr(config-subif)# ip address 10.30.0.1/16 
esr(config-subif)# security-zone vrf-sec 
esr(config-subif)# exit 
esr(config)# exit 
Configuration changes will take effect when the configuration is applied: 
esr# commit 
Configuration has been successfully committed 
esr# confirm 
Configuration has been successfully confirmed 
To view information on interfaces mapped to VRF, use the following command: 
esr# show ip vrf  
To view VRF routing table, use the following command: