Re: need help in setting up ip alias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message -----
From: "Rupali Kasralikar" <rupalik10@yahoo.com>
Sent: Tuesday, July 22, 2003 6:30 AM

> card which has ip  eth0 192.168.4.174 (private ip). I
> added alias Ip address to eth0 using ifconfig eth0:0
> 192.168.10.10 netmask 255.255.255.0.
> I also added = route add -host 192.168.10.10 dev
> eth0:0
> Now, I tried to ping to alias IP from another Linux
> machine (IP 192.168.4.175/24) which is connected by
> hub to my Linux box. Ping didn't response.
>
> What went wrong? What is it that I am missing? What
> are the steps to follow to setup ip alias for two
> different subnets?
    Yes, its completely went wrong. There is difference b/w subneting and
superneting and thus routing and broadcasting. Make sure you add routing of
host 192.168.10.10 in your Linux 192.168.4.175/24.
    I'm not sure but simplest command could be like
    route add -host 192.168.10.10 gw 192.168.4.174
Hope this helps,
-- Sumit

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux