Route IP Traffic and Create Static Routes Flashcards Preview

RHCE > Route IP Traffic and Create Static Routes > Flashcards

Flashcards in Route IP Traffic and Create Static Routes Deck (4):
1

How to view the routing table

ip route list

2

Force a static route

ip route add {endpoint ip} via {ip of your default gateway} dev eth1

Example:
ip route add 216.58.217.0/24 via 10.1.152.1 dev eth1

3

Delete a static route

ip route del 216.58.217.0/24 via 10.1.152.1 dev eth1

4

Creating a persistent route

vim /etc/sysconfig/static-routes

any net 173.194.205.0 netmask 255.255.255.0 gw 10.1.152.1 dev eth0

nmcli con mod eth0-con ipv4-routes "10.1.152.0/24 10.1.152.1 100"