Communication Outside Cisco IOS XR
To communicate outside Cisco IOS XR, applications use the fwdintf
interface address that maps to the loopback0
interface or a configured Gigabit Ethernet interface address.
To have an application on IOS XR communicate with its respective server outside IOS XR, you must configure an interface address as the source address on XR. The remote servers must configure this route address to reach the respective clients on IOS XR.
This section provides an example of configuring a Gigabit Ethernet interface address as the source address for external communication.
Using a Gigabit Ethernet Interface for External Communication
To configure a GigE interface on IOS XR for external communication, use these steps:
-
Configure a GigE interface.
RP/0/RP0/CPU0:ios(config)# interface GigabitEthernet 0/0/0/1 RP/0/RP0/CPU0:ios(config-if)# ipv4 address 192.57.43.10 255.255.255.0 RP/0/RP0/CPU0:ios(config-if)# no shut RP/0/RP0/CPU0:ios(config-if)# commit Fri Oct 30 07:51:14.785 UTC RP/0/RP0/CPU0:ios(config-if)# exit RP/0/RP0/CPU0:ios(config)# exit
-
Verify whether the configured interface is up and operational on IOS XR.
RP/0/RP0/CPU0:ios# show ipv4 interface brief Fri Oct 30 07:51:48.996 UTC Interface IP-Address Status Protocol Loopback0 1.1.1.1 Up Up Loopback1 8.8.8.8 Up Up GigabitEthernet0/0/0/0 192.164.168.10 Up Up GigabitEthernet0/0/0/1 192.57.43.10 Up Up GigabitEthernet0/0/0/2 unassigned Shutdown Down MgmtEth0/RP0/CPU0/0 192.168.122.197 Up Up RP/0/RP0/CPU0:ios#
-
Configure the GigE interface as the source address for external communication.
[xr-vm_node0_RP0_CPU0:~]$ exit RP/0/RP0/CPU0:ios# config Fri Oct 30 08:55:17.992 UTC RP/0/RP0/CPU0:ios(config)# tpa address-family ipv4 update-source gigabitEthernet 0/0/0/1 RP/0/RP0/CPU0:ios(config)# commit Fri Oct 30 08:55:38.795 UTC
Note
By default, the
fwdintf
interface maps to theloopback0
interface for external communication. This is similar to binding a routing process or router ID to theloopback0
interface. When you use thetpa address-family ipv4 update-source
command to bind thefwdintf
interface to a Gigabit Ethernet interface, network connectivity can be affected if the interface goes down.
External communication is successfully enabled on IOS XR.