Linux on IBM Z network settings

This information describes various aspects of the required network setup of the Linux on IBM Z network.

Quagga/FRR setup - OSPF

The ospfd.conf configuration file for SLES 12.x is located in the /etc/quagga directory and for RHEL 8.x in the /etc/frr directory.

/etc/quagga/ospfd.conf

hostname ihlscoh2
password <your password> 
enable password <your password> 
!
interface dummy0
 ip ospf cost 1
!
interface eth1
 ip ospf cost 15
!
interface hsi0
 ip ospf cost 10
!
router ospf
 ospf router-id 9.152.20.158
 network 10.101.4.215/32 area 0
 network 10.101.4.128/26 area 0
 network 10.101.4.64/26 area 0
!
line vty
!
log file /var/log/quagga/ospfd.log
Note: For RHEL 8.x the log file should be in /var/log/frr/ospfd.log.

Zebra setup - Zebra

Following shows the quagga or frr zebra definitions. The route-map defines that the dummy IP (VIPA) is used as source IP address of all outgoing connections to all destinations in 10.0.0.* subnets.

SLES 12.x:

/etc/quagga/zebra.conf

hostname ihlscoh2
password <your password> 
enable password <your password> 
ip route 0.0.0.0/0 9.152.20.1
route-map vipa1 permit 10
 match ip address prefix-list DEST
 set src 10.101.4.215
 continue
route-map vipa1 permit 20
ip protocol ospf route-map vipa1
ip prefix-list DEST permit 10.0.0.0/8 le 32
log file /var/log/quagga/quagga.log

RHEL 8.x

/etc/frr/zebra.conf

hostname ihlscoh6
password <your password>
enable password  <your password>
route-map VIPARM1 permit 10
 match ip address prefix-list DEST
 set src 10.101.4.219
ip protocol ospf route-map VIPARM1
ip prefix-list DEST permit 10.101.0.0/16 le 32
log file /var/log/frr/zebra.log