TITLE : Routing with AIX, setting up gated with OSPF routing protocol. OS LEVEL : AIX 4.2.1 upwards DATE : 07/06/99 VERSION : 1.0 ---------------------------------------------------------------------------- In the example below the system is to be setup as a router using OSPF. The system is connected to 2 networks :- 127.22.0.0 via ethernet using adapter en0 194.35.52.0 via ppp serial link using adapter pp0 The ip address of the system are :- en0 = 172.22.20.70 pp0 = 194.35.53.1 The default gateway for the system to talk to other networks is :- 172.22.2.1 The routing software needs to communicate with other routers on the network (172.20.2.1) and tell it that the gateway for the 194.35.53 network is 172.22.20.70 1, Check that the TCP/IP Server software is installed :- lslpp -l bos.net.tcp.server If not installed, then install using smit install_latest 2, Turn on ip forwarding :- no -o ipforwarding=1 3, Edit the /etc/gated.conf file :- -------------------------start-of-gated.conf-file---------------------------- interfaces { interface en0 pp0 passive ; } ; ospf yes { traceoptions "/tmp/gated.ospf.log" replace size 2m files 2 all; backbone { authtype none ; interface en0 { enabled ; priority 2 ; } ; interface pp0 { enabled ; priority 4 ; } ; } ; }; static { default gateway 172.22.2.1 preference 60 retain ; 194.35.53.0 gateway 172.22.20.70 retain ; } ; export proto ospfase { proto static { 194.35.53.0 mask 255.255.255.0 metric 1; }; }; -------------------------end-of-gated.conf-file------------------------------ 4, Start the gated routing software software :- startsrc -s gated