Route IP Traffic and Create Static Routes Flashcards

1
Q

How to view the routing table

A

ip route list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Force a static route

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Delete a static route

A

ip route del 216.58.217.0/24 via 10.1.152.1 dev eth1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Creating a persistent route

A

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”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly