Examples from the man page
An example with common network interfaces and some static routes:
# --- IPv4 routes in CIDR prefix notation: # Destination [Gateway] - Interface # 127.0.0.0/8 - - lo 204.127.235.0/24 - - eth0 default 204.127.235.41 - eth0 207.68.156.51/32 207.68.145.45 - eth1 192.168.0.0/16 207.68.156.51 - eth1
# --- IPv4 routes in deprecared netmask notation: # Destination [Dummy/Gateway] Netmask Interface # 127.0.0.0 0.0.0.0 255.255.255.0 lo 204.127.235.0 0.0.0.0 255.255.255.0 eth0 default 204.127.235.41 0.0.0.0 eth0 207.68.156.51 207.68.145.45 255.255.255.255 eth1 192.168.0.0 207.68.156.51 255.255.0.0 eth1
# --- IPv6 routes are always using CIDR notation: # Destination [Gateway] - Interface # 2001:DB8:100::/64 - - eth0 2001:DB8:100::/32 fe80::216:3eff:fe6d:c042 - eth0
Examples from the man page
An example with common network interfaces and some static routes:
# --- IPv4 routes in CIDR prefix notation:
204.127. 235.0/24 - - eth0
207.68. 156.51/ 32 207.68.145.45 - eth1
192.168. 0.0/16 207.68.156.51 - eth1
# Destination [Gateway] - Interface
#
127.0.0.0/8 - - lo
default 204.127.235.41 - eth0
# --- IPv4 routes in deprecared netmask notation:
204.127. 235.0 0.0.0.0 255.255.255.0 eth0
207.68. 156.51 207.68.145.45 255.255.255.255 eth1
# Destination [Dummy/Gateway] Netmask Interface
#
127.0.0.0 0.0.0.0 255.255.255.0 lo
default 204.127.235.41 0.0.0.0 eth0
192.168.0.0 207.68.156.51 255.255.0.0 eth1
# --- IPv6 routes are always using CIDR notation:
2001:DB8: 100::/64 - - eth0
2001:DB8: 100::/32 fe80::216: 3eff:fe6d: c042 - eth0
# Destination [Gateway] - Interface
#