Here’s the sample configuration for setting up the management port for different router platforms using static route.
Assuming we have this IP configuration:
RSP0/RE0 Physical IP : 10.10.10.98/24
RSP1/RE1 Physical IP: 10.10.10.99/24
Virtual IP: 10.10.10.100/24
Gateway: 10.10.10.1/24
Note: It is advisable to connect the management plane connectivity to another network separate from data/voice network.
Steps | Cisco IOS-XR | Cisco NX-OS | Juniper OS | Huawei |
Create VRF | #vrf management #vrf management description MNGMT #vrf management address-family ipv4 unicast |
N/A | #set system management-instance #set routing-instances mgmt_junos description MNGMT |
#ip vpn-instance management description MNGMT ipv4-family |
Configure Physical IP#1 | #interface MgmtEth0/RSP0/CPU0/0 ipv4 address 10.10.10.98 255.255.255.0 | N/A | #set groups re0 interfaces em0 unit 0 family inet address 10.10.10.98/24 | N/A |
Configure Physical IP#2 | #interface MgmtEth0/RSP1/CPU0/0 ipv4 address 10.10.10.99 255.255.255.0 | N/A | #set groups re1 interfaces em0 unit 0 family inet address 10.10.10.99/24 | N/A |
Configure Virtual IP | #ipv4 virtual address vrf management 10.10.10.100/24 | #interface mgmt0 vrf member management ip address 10.10.10.100/24 |
#set groups re0 interfaces em0 unit 0 family inet address 10.10.10.100/24 master-only #set groups re1 interfaces em0 unit 0 family inet address 10.10.10.100/24 master-only |
#interface GigabitEthernetx/x/x speed auto duplex auto description MNGMT undo shutdown ip binding vpn-instance management ip address 10.10.10.100 255.255.255.0 |
Configure Static Route | #router static vrf management address-family ipv4 unicast 0.0.0.0/0 10.10.10.1 | #ip route 0.0.0.0/0 10.10.10.1 | #set routing-instances mgmt_junos routing-options static route 0.0.0.0/0 next-hop 10.10.10.1 | #ip route-static vpn-instance management 0.0.0.0 0.0.0.0 10.10.10.1 |
Be First to Comment