I want to visit a site through assigned IP address. I run the following commands:
ifconfig eth0:1 [ip address]
route add -host [the target host ip] dev eth0:1 gw [gateway]
This works fine on Ubuntu. But when I want to do the same on a Redhat AS4 server, it doesn't work. ping
works for the new IP address, but after running route, the target site can't be visited.
Anyone know the reason?