Red_Hat
RH302 · Question #27
There is a server having 172.24.254.254 and 172.25.254.254. Your System lies on 172.24.0.0/16. Make successfully ping to 172.25.254.254 by Assigning following IP: 172.24.0.x Where x is your station nu
To configure your system with IP 172.24.0.x and successfully ping 172.25.254.254: 1. Edit /etc/sysconfig/network-scripts/ifcfg-eth0 (replace x with your specific station number): `` DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=172.24.0.x NETMASK=255.255.0.0 GATEWAY=172.24.254.2
Network configuration
Question
There is a server having 172.24.254.254 and 172.25.254.254. Your System lies on 172.24.0.0/16. Make successfully ping to 172.25.254.254 by Assigning following IP: 172.24.0.x Where x is your station number.
Explanation
To configure your system with IP 172.24.0.x and successfully ping 172.25.254.254:
- Edit
/etc/sysconfig/network-scripts/ifcfg-eth0(replacexwith your specific station number):DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=172.24.0.x NETMASK=255.255.0.0 GATEWAY=172.24.254.254 - Restart the network service or bring the interface down/up:
service network restartORifdown eth0 && ifup eth0 - Verify connectivity by pinging the target server:
ping 172.25.254.254
Topics
#IP routing#network interface#gateway#cross-network ping
Community Discussion
No community discussion yet for this question.