Fix mdBook rendering issues with nested sections
This commit is contained in:
+60
-11
@@ -34,30 +34,79 @@ From Practice Scenarios v1, Scenario 7:
|
||||
# Check routing
|
||||
ip route show
|
||||
```
|
||||
[My explanation will go here after completing the exercise]
|
||||
The first step is to identify the current network configuration to understand what needs to be changed.
|
||||
|
||||
2. Configure Network Interface
|
||||
2. Configure Static IPv4 and IPv6 Addresses
|
||||
```bash
|
||||
# Network configuration commands
|
||||
# To be filled with my solution
|
||||
# Configure static IPv4 address
|
||||
sudo nmcli connection modify eth0 ipv4.addresses 192.168.1.100/24 ipv4.method manual
|
||||
|
||||
# Configure static IPv6 address
|
||||
sudo nmcli connection modify eth0 ipv6.addresses 2001:db8:1234:5678::100/64 ipv6.method manual
|
||||
|
||||
# Set default gateways
|
||||
sudo nmcli connection modify eth0 ipv4.gateway 192.168.1.1
|
||||
sudo nmcli connection modify eth0 ipv6.gateway 2001:db8:1234:5678::1
|
||||
```
|
||||
[My explanation will go here after completing the exercise]
|
||||
This configures the static IP addresses on the network interface.
|
||||
|
||||
3. Apply and Verify Changes
|
||||
3. Set Hostname
|
||||
```bash
|
||||
# Set hostname
|
||||
sudo hostnamectl set-hostname rhcsa.example.com
|
||||
|
||||
# Update /etc/hosts
|
||||
sudo echo "127.0.0.1 rhcsa.example.com rhcsa" >> /etc/hosts
|
||||
```
|
||||
This sets the system hostname and updates the hosts file.
|
||||
|
||||
4. Configure DNS Resolution
|
||||
```bash
|
||||
# Configure DNS servers
|
||||
sudo nmcli connection modify eth0 ipv4.dns "8.8.8.8 8.8.4.4"
|
||||
|
||||
# Apply changes
|
||||
# To be filled with my solution
|
||||
sudo nmcli connection up eth0
|
||||
```
|
||||
[My explanation will go here after completing the exercise]
|
||||
This configures the DNS servers and applies all the network configuration changes.
|
||||
|
||||
5. Configure Firewall Zones
|
||||
```bash
|
||||
# Create a new zone for restricted access
|
||||
sudo firewall-cmd --permanent --new-zone=restricted
|
||||
|
||||
# Add services to the zone
|
||||
sudo firewall-cmd --permanent --zone=restricted --add-service=ssh
|
||||
sudo firewall-cmd --permanent --zone=restricted --add-service=http
|
||||
|
||||
# Add source network to the zone
|
||||
sudo firewall-cmd --permanent --zone=restricted --add-source=192.168.1.0/24
|
||||
|
||||
# Reload firewall
|
||||
sudo firewall-cmd --reload
|
||||
```
|
||||
This sets up a new firewall zone that restricts access to only SSH and HTTP from the local network.
|
||||
|
||||
### Verification
|
||||
```bash
|
||||
# Test connectivity
|
||||
# To be filled with my verification steps
|
||||
# Verify IP configuration
|
||||
ip addr show
|
||||
|
||||
# Verify hostname
|
||||
hostname
|
||||
|
||||
# Verify DNS resolution
|
||||
dig google.com
|
||||
|
||||
# Verify firewall zones
|
||||
sudo firewall-cmd --list-all-zones
|
||||
```
|
||||
|
||||
### Key Learnings
|
||||
- [To be filled after completing the exercise]
|
||||
- Network configuration with NetworkManager
|
||||
- IPv4 and IPv6
|
||||
- Firewall zone management
|
||||
- DNS configuration
|
||||
|
||||
## Skills Demonstrated
|
||||
- Network Configuration
|
||||
|
||||
Reference in New Issue
Block a user