- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Issue with virtual IP addresses on trunk
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2006 01:28 AM
12-08-2006 01:28 AM
I have following configuration: A grid of 10 RHEL 4/u4 linux machines with some network cards. Our network people created a trunk on their switch so I have eth0.X and eth0.Y Vlan definitions. Now I want to put virutal IPs on eth0.X.
# ifconfig eth0.X:1 add XXX.XXX.XXX.XXX.
# ifconfig eth0.X:2 add YYY.YYY.YYY.YYY
Everything works perfect. But when I run ifconfig -a I cannot see the index number (:1 or :2). I did not find it in /proc filesystem neigther.
Does anybody has an idea how to reveal the index number.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2006 04:11 AM
12-08-2006 04:11 AM
Re: Issue with virtual IP addresses on trunk
ifconfig eth0:1 a.b.c.d/24
Then ran ifconfig -a.....it shows all of the interface addresses along with the alias for eth0:1. Not sure why you are not seeing them but I've never seen the ifconfig add syntax used to create aliases. Could have something to do with it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2006 04:22 AM
12-08-2006 04:22 AM
Re: Issue with virtual IP addresses on trunk
Maybe this explains it better:
Contents of /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=no
/etc/sysconfig/network-scripts/ifcfg-eth0.1
DEVICE=eth0.1
....
ONBOOT=yes
VLAN=yes
# service network restart
Then adding the IP address of the machine.
# ifconfig eth0.1 add 192.168.1.10
Now adding a virtual IP on the same NIC
# ifconfig eth0.1:1 add 192.168.1.100
If now you do ifconfig -a you see:
eth0 ....
eth0.1: ....
eth0.1: ....
What I would expect is
eth0 ....
eth0.1:0 ....
eth0.1:1 ....
Best regards,
Dieter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2006 09:14 AM
12-08-2006 09:14 AM
Re: Issue with virtual IP addresses on trunk
But nevertheless, for our team of sysadmins, it is nice to have a ifconfig NIC add and ifconfig NIC del commands. It is working anyway for IPv6 and IPv4.
The only thing is that ifconfig -a truncates the (lets say the awk { print $1 } string).
Where ever I look, I do not find the indexes.
It is for me important to mount/unmount floating databases, but of course I need to mention the right index in the command ifconfig NIC:
Best regards,
Dieter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2006 01:04 PM
12-11-2006 01:04 PM
Solutionip li
will show you all the link available on the system, all up and all the down ones.
ip addr
will show you all the addresses attach to an interface
You can add/modi/del addresses, routes etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2006 08:37 PM
12-11-2006 08:37 PM
Re: Issue with virtual IP addresses on trunk
Did you know that you are a hero?
You solved this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2006 08:38 PM
12-11-2006 08:38 PM
Re: Issue with virtual IP addresses on trunk
is indeed the perfect solution for my problem.