Red_Hat
RH302 · Question #22
There are two different networks 192.168.0.0/24 and 192.168.1.0/24. Where 192.168.0.254 and 192.168.1.254 IP Address are assigned on Server. Verify your network settings by pinging 192.168.1.0/24…
To configure network settings and verify connectivity, follow these steps: Option 1: Configure /etc/sysconfig/network 1. Edit /etc/sysconfig/network: `` NETWORKING=yes HOSTNAME=station?.example.com GATEWAY=192.168.0.254 ` 2. Restart the network service: service network restart…
Network configuration
Question
There are two different networks 192.168.0.0/24 and 192.168.1.0/24. Where 192.168.0.254 and 192.168.1.254 IP Address are assigned on Server. Verify your network settings by pinging 192.168.1.0/24 Network's Host.
Explanation
To configure network settings and verify connectivity, follow these steps:
Option 1: Configure /etc/sysconfig/network
- Edit
/etc/sysconfig/network:NETWORKING=yes HOSTNAME=station?.example.com GATEWAY=192.168.0.254 - Restart the network service:
service network restart
Option 2: Configure /etc/sysconfig/network-scripts/ifcfg-eth0
- Edit
/etc/sysconfig/network-scripts/ifcfg-eth0(replaceX.X.X.Xwith appropriate IP and netmask for your host to be able to reach the target network):DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=X.X.X.X NETMASK=X.X.X.X GATEWAY=192.168.0.254 - Bring the interface down:
ifdown eth0 - Bring the interface up:
ifup eth0
After configuration, you can verify by pinging a host in the 192.168.1.0/24 network (e.g., ping 192.168.1.X).
Topics
#routing#dual NIC#gateway#multi-network
Community Discussion
No community discussion yet for this question.