- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- configure a second IP to a ethernet card
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
07-12-2005 10:45 PM
07-12-2005 10:45 PM
configure a second IP to a ethernet card
How con configure a second ip to an ethernet card?
I need only to use ifconfig?
Not in lan0 but in lan1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 10:52 PM
07-12-2005 10:52 PM
Re: configure a second IP to a ethernet card
I believe you can use ethernet alias.
just check alias options in ifconfig (lan0:1)
Hope this helps,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 10:57 PM
07-12-2005 10:57 PM
Re: configure a second IP to a ethernet card
Example:
IP_ADDRESS[1]=192.168.164.97
SUBNET_MASK[1]=255.255.248.0
INTERFACE_NAME[1]=lan1:1
BROADCAST_ADDRESS[1]=192.168.167.255
INTERFACE_STATE[1]=up
ifconfig lan1:1 up
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 11:05 PM
07-12-2005 11:05 PM
Re: configure a second IP to a ethernet card
If you're looking to test it out or for a more temporary solution, you can configure it manually via ifconfig command:
ifconfig lan1:1 inet ${ip} netmask ${nm} broadcast ${bc} up
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 11:25 PM
07-12-2005 11:25 PM
Re: configure a second IP to a ethernet card
# traceroute alfa
traceroute: Warning: Multiple interfaces found; using 172.20.192.133 @ lan0:1
traceroute to alfa (172.20.102.123), 30 hops max, 40 byte packets
1 alfa (172.20.102.123) 0.270 ms 0.138 ms 0.135 ms
But I want to use lan1:1 :
# traceroute alfa
traceroute: Warning: Multiple interfaces found; using 172.20.102.169 @ lan1:1
traceroute to alfa (172.20.102.123), 30 hops max, 40 byte packets
1 alfa (172.20.102.123) 0.270 ms 0.138 ms 0.135 ms
How?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 11:30 PM
07-12-2005 11:30 PM
Re: configure a second IP to a ethernet card
Specify the interface with -i
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 11:51 PM
07-12-2005 11:51 PM
Re: configure a second IP to a ethernet card
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 12:53 AM
07-13-2005 12:53 AM
Re: configure a second IP to a ethernet card
Try
route add command this may solve your problem.
route add "dest ip" "lan1:1 ip"
bye bye
Jayachandran.G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2005 01:41 PM
08-13-2005 01:41 PM
Re: configure a second IP to a ethernet card
I can't find the path and file "etc/rc.config.d/netconf " ,my o.s is Tru64 5.1B , if I wnat to add second ip address ,how to do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2005 03:49 PM
08-13-2005 03:49 PM
Re: configure a second IP to a ethernet card
http://forums1.itrc.hp.com/service/forums/familyhome.do?familyId=280
UNIX because I majored in cryptology...