Re: [Ilugc] configure the virtual IP

2010-01-12 Thread Mohan Sundaram
On Wed, Jan 13, 2010 at 11:36 AM, Bharathi Subramanian < sbhara...@midascomm.com> wrote: > On 9:11am, Suresh Kumar Subramanian wrote: > > > How "ip address" command differs from ifconfig command. > > Most of the commands are just a interface to the Kernel API. > ifconfig provides less interfaces a

RE: [Ilugc] configure the virtual IP

2010-01-12 Thread Bharathi Subramanian
On 9:11am, Suresh Kumar Subramanian wrote: > How "ip address" command differs from ifconfig command. Most of the commands are just a interface to the Kernel API. ifconfig provides less interfaces and ip provides more. Bye :) -- Bharathi S ___ ILUGC

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread Bharathi Subramanian
On 9:04am, Mohan Sundaram wrote: > I'd like to know use cases where one needs an address without the > secondary prefix on the device. Redundancy. Bcoz I learned this only when I was playing with VRRP. > Seems to me that ifconfig does not show this address as it does not > have a label. Not sur

RE: [Ilugc] configure the virtual IP

2010-01-12 Thread Suresh Kumar Subramanian
>No. You can do this using the following command: ># ip address add dev eth0 192.168.10.1/24 broadcast + ># ip address add dev eth0 192.168.20.1/24 broadcast + This command works. This what I have expected. How "ip address" command differs from ifconfig command. >Show the associated IPs (ifconfig

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread Mohan Sundaram
On Tue, Jan 12, 2010 at 11:47 PM, Bharathi Subramanian < sbhara...@midascomm.com> wrote: > Bharathi Subramanian said: > > It is not like direct assignment of IP. Some other trick and is > > related to multicast. Let me try to recollect that. > > No. You can do this using the following command: > #

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread Bharathi Subramanian
Bharathi Subramanian said: > It is not like direct assignment of IP. Some other trick and is > related to multicast. Let me try to recollect that. No. You can do this using the following command: # ip address add dev eth0 192.168.10.1/24 broadcast + # ip address add dev eth0 192.168.20.1/24 broadc

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread Bharathi Subramanian
> On 01/12/2010 02:49 PM, Saravanan S wrote: >> Since everything in Linux is a file, you can create a virtual NIC >> by duplicating the eth0 device file. How!? Bcoz network interface is not connected to any device file. > AFAICT[1], RTNETLINK is refers to the netfilter API to manipulate > the ker

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread steve
Hi, On 01/12/2010 07:27 PM, Saravanan S wrote: On Tue, Jan 12, 2010 at 7:18 PM, steve wrote: What I'm trying to say is the file you mentioned in your reply[1] (/etc/sysconfig/network-scripts/), is the 'config' file for the NIC as opposed to the /device/ file. A device file has a very spec

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread Guruprasad
Hi, On Tue, Jan 12, 2010 at 7:27 PM, Saravanan S wrote: > On Tue, Jan 12, 2010 at 7:18 PM, steve wrote: >>  I actually considered you as a beginner, so did not want to overload you. >  If you were that intelligent you must not be waiting for my solution. See, as was pointed out in some other d

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread Saravanan S
On Tue, Jan 12, 2010 at 7:18 PM, steve wrote: > What I'm trying to say is the file you mentioned in your reply[1] > (/etc/sysconfig/network-scripts/), is the 'config' file for the > NIC as opposed to the /device/ file. > A device file has a very specific meaning in linux. A device file in linux >

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread steve
Hi, On 01/12/2010 07:03 PM, Saravanan S wrote: On Tue, Jan 12, 2010 at 6:43 PM, steve wrote: Well, the file /etc/sysconfig/network-scripts/ is hardly the 'device file'. http://en.wikipedia.org/wiki/Device_file Device files are files in the '/dev' directory. While it's true most linux d

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread Saravanan S
On Tue, Jan 12, 2010 at 6:43 PM, steve wrote: > Well, the file /etc/sysconfig/network-scripts/ is hardly the > 'device file'. > http://en.wikipedia.org/wiki/Device_file > > Device files are files in the '/dev' directory. While it's true most linux > devices can be accessed as file, NICs are an ex

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread steve
Hi Saravanan, On 01/12/2010 02:49 PM, Saravanan S wrote: Since everything in Linux is a file, you can create a virtual NIC by duplicating the eth0 device file. ...and pray tell how is that done ?? What exactly is the eth0 device file ? Im sorry, the previous was a top post. ;) Although, t

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread Saravanan S
Since everything in Linux is a file, you can create a virtual NIC by duplicating the eth0 device file. Im sorry, the previous was a top post. ;) Saravanan Sundaramoorthy Red Hat Certified Engineer +91 99404 32545 ___ ILUGC Mailing List: http://www.ae.ii

Re: [Ilugc] configure the virtual IP

2010-01-12 Thread Saravanan S
Yes you can do that, but it is not persistent. ifconfig eth0:1 ifconfig eth0:2 ifconfig eth0:3 and so on. :) Saravanan Sundaramoorthy Red Hat Certified Engineer +91 99404 32545 On Tue, Jan 12, 2010 at 2:41 PM, Suresh Kumar Subramanian < sureshkuma...@carc.co.in> wrote: > Hi, > > Anyone kn

[Ilugc] configure the virtual IP

2010-01-12 Thread Suresh Kumar Subramanian
Hi, Anyone know how to configure the virtual IP on the same Ethernet interface(ethx) ? I mean, Configure the multiple IPs on eth0, not eth0:0 or eth0:1 There is a way to do using RTNETLINK, But I am not able to find any resource in the internet. If anyone have come across some utility or RTNETL