- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding the gateway addresses.
Operating System - HP-UX
1823143
Members
3444
Online
109647
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО03-12-2001 02:16 AM
тАО03-12-2001 02:16 AM
Hello,
My new HP l-class servers are having 3 Network Interface cards each. Can you tell me how to put the default gateways for each of the cards except the base card lan0 (i know that set_parms work for this first interface).
I hope i have to put it in /etc/rc.config.d but i don't know the syntax.
Thanks in advance,
am
If i am doing the same way you are doing to me then what is the difference between us.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2001 02:29 AM
тАО03-12-2001 02:29 AM
Solution
Hi,
In the /etc/rc.config.d there is a file called netconf. This file is used to configure your NIC's.
I think you see this:
INTERFACE_NAME[0]=lan0
enz...
INTERFACE_NAME[1]=lan...
enz..
INTERFACE_NAME[2]=lan...
enz..
The [0] [1] [2] stands for your NIC's.
In these file you can also configure the gateway, so look for the number( 0,1,2)and configure it,
You can read in the file how you must configure it.
Marcel
In the /etc/rc.config.d there is a file called netconf. This file is used to configure your NIC's.
I think you see this:
INTERFACE_NAME[0]=lan0
enz...
INTERFACE_NAME[1]=lan...
enz..
INTERFACE_NAME[2]=lan...
enz..
The [0] [1] [2] stands for your NIC's.
In these file you can also configure the gateway, so look for the number( 0,1,2)and configure it,
You can read in the file how you must configure it.
Marcel
See the man pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2001 02:31 AM
тАО03-12-2001 02:31 AM
Re: Adding the gateway addresses.
How do I configure/add the IP address for a new interface?
RESOLUTION
Add an entry to the netconf file to identify this new IP address and lan
interface name:
vi /etc/rc.config.d/netconf
INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=15.43.233.100
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=""
LANCONFIG_ARGS[1]="ether"
DHCP_ENABLE[1]=0
If you have a new IP address, you may also need to add a default route.
This is done in the netconf file just below where you configure your interface:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=15.43.233.100
ROUTE_COUNT[0]=0
ROUTE_ARGS[0]=""
If the ip address of your gateway is a hub/router/switch you will want to set
ROUTE_COUNT=1. If the gateway is your local interface card you will set
ROUTE_COUNT=0.
*Note: If there are multiple interfaces in the system, they all need to be on
separate subnets. You may not back up the netconf file in the rc.config.d
directory. If you need to back up this file move it out to another directory.
RESOLUTION
Add an entry to the netconf file to identify this new IP address and lan
interface name:
vi /etc/rc.config.d/netconf
INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=15.43.233.100
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=""
LANCONFIG_ARGS[1]="ether"
DHCP_ENABLE[1]=0
If you have a new IP address, you may also need to add a default route.
This is done in the netconf file just below where you configure your interface:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=15.43.233.100
ROUTE_COUNT[0]=0
ROUTE_ARGS[0]=""
If the ip address of your gateway is a hub/router/switch you will want to set
ROUTE_COUNT=1. If the gateway is your local interface card you will set
ROUTE_COUNT=0.
*Note: If there are multiple interfaces in the system, they all need to be on
separate subnets. You may not back up the netconf file in the rc.config.d
directory. If you need to back up this file move it out to another directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2001 02:35 AM
тАО03-12-2001 02:35 AM
Re: Adding the gateway addresses.
Hi,
default gateway can only be set generally in /etc/rc.config.d/netconf:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
Regards
default gateway can only be set generally in /etc/rc.config.d/netconf:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
Regards
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP