From the course: Red Hat Enterprise Linux 8 Essential Training
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Route IP traffic and create static routes
From the course: Red Hat Enterprise Linux 8 Essential Training
Route IP traffic and create static routes
- [Instructor] We can add static routes using the ip route command. We can also add static routes using the legacy route command, although it needs to be installed first. However, if you want your static routes to survive a reboot, you'll need to add them to configuration files in /etc/sysconfigs/network-scripts. When we create a network interface configuration file, we name it ifcfg-interface name such as ifcfg-eth0. For a static routes, we name the configuration file route-interface name. For instance, if we wanted to add a static route for the eth0 interface, we'd create a file called route-eth0. To add a route manually using the ip command, we type ip route add 192.168.100.0, which is the network address /24 which is the subnet mask, 192.168.100.1 which is the gateway, dev team0, which is the interface. If you type in ip route, you would see the results of this line. The legacy route version of this command line is a bit longer. We type in route add -net 192.168.100.0 netmask…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
Network services introduction44s
-
Consistent network device naming4m 31s
-
Gather network information5m 37s
-
Configure IP and subnet mask3m 46s
-
Configure interface bonding using nmcli4m 14s
-
Configure interface teaming using nmcli6m 5s
-
Configure IPv6 and perform basic troubleshooting1m 30s
-
Use firewalld for packet filtering3m 16s
-
Use firewalld zones3m 42s
-
Use firewalld for NAT3m 32s
-
Use firewalld rich rules3m
-
Route IP traffic and create static routes2m 6s
-
Challenge: Network services1m 13s
-
Solution: Network services6m 45s
-
-
-
-
-
-
-
-
-