Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-18-2007, 12:12 PM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 9
Rep:
|
Check all ip's on my eth
Hi all,
Which command is to be used to check all virtual IP's of interface?
ifconfig shows only real ip's.
tx.
|
|
|
10-18-2007, 12:17 PM
|
#2
|
Member
Registered: Aug 2007
Distribution: RHEL, Fedora, Ubuntu
Posts: 64
Rep:
|
Quote:
Originally Posted by rcm_b05
Hi all,
Which command is to be used to check all virtual IP's of interface?
ifconfig shows only real ip's.
tx.
|
ifconfig -a should show you all ips and vips and their status.
|
|
|
10-19-2007, 01:12 AM
|
#3
|
LQ Newbie
Registered: Oct 2007
Posts: 9
Original Poster
Rep:
|
no,
linux:~ # cat /etc/sysconfig/network/ifcfg-eth0
BOOTPROTO='static'
BROADCAST='172.16.1.255'
IPADDR='172.16.1.3'
MTU=''
NETMASK='255.255.255.0'
NETWORK='172.16.1.0'
REMOTE_IPADDR=''
STARTMODE='onboot'
_nm_name='static-0'
linux:~ # cat /etc/sysconfig/network/ifcfg-eth1
BOOTPROTO='static'
MTU=''
REMOTE_IPADDR=''
STARTMODE='onboot'
_nm_name='static-0'
IPADDR_2='172.16.2.1'
NETMASK_2='255.255.255.192'
IPADDR_3='172.16.3.1'
IPADDR='172.16.3.5'
NETMASK='255.255.255.192'
NETWORK='172.16.5.0'
BUT ifconfig -a doesnt show all ip's of eth1 as given below
eth0 Link encap:Ethernet HWaddr 00:30:48:52:CC:06
inet addr:172.16.1.3 Bcast:172.16.1.255 Mask:255.255.255.0
inet6 addr: fe80::230:48ff:fe52:cc06/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1099954927 errors:0 dropped:0 overruns:0 frame:0
TX packets:1230100696 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2767502641 (2639.2 Mb) TX bytes:2177980359 (2077.0 Mb)
Base address:0x8f00 Memory:fe5a0000-fe5c0000
eth1 Link encap:Ethernet HWaddr 00:30:48:52:CC:07
inet addr:172.16.3.5 Bcast:172.16.5.63 Mask:255.255.255.192
inet6 addr: fe80::230:48ff:fe52:cc07/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2010622117 errors:0 dropped:0 overruns:0 frame:0
TX packets:1874357540 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3562591781 (3397.5 Mb) TX bytes:3297093834 (3144.3 Mb)
Interrupt:31
|
|
|
10-19-2007, 12:36 PM
|
#4
|
Member
Registered: Aug 2007
Distribution: RHEL, Fedora, Ubuntu
Posts: 64
Rep:
|
Which Linux are you using, btw?
In RedHat, I've set up separate files. For example:
# cat /etc/sysconfig/network-scripts/ifcfg-eth0:1
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=192.168.30.127
NETMASK=255.255.255.0
NETWORK=192.168.30.0
BROADCAST=192.168.30.255
ONBOOT=yes
And I believe you can set them up in the same file as you were trying, but you have to have multiple "Device" entries.
|
|
|
All times are GMT -5. The time now is 02:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|