- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- configuring a gateway
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
Discussions
Discussions
Discussions
Forums
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
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
тАО04-29-2003 04:21 AM
тАО04-29-2003 04:21 AM
configuring a gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 04:28 AM
тАО04-29-2003 04:28 AM
Re: configuring a gateway
What about using the command set_parms?
Usage: set_parms
Where
hostname
timezone
date_time
root_passwd
ip_address
addl_netwrk
font_c-s
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 04:31 AM
тАО04-29-2003 04:31 AM
Re: configuring a gateway
.. and reboot ..
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 04:33 AM
тАО04-29-2003 04:33 AM
Re: configuring a gateway
route add default 10.0.0.1 1
route add net 10.0.0.0 netmask 255.0.0.0 10.0.0.1 1
route add host 10.0.1.2 10.0.0.1 1
These are different commands for adding different types of routes for more information see the man page on route. "man route"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 04:39 AM
тАО04-29-2003 04:39 AM
Re: configuring a gateway
ifconfig configuration is temporary and when you reboot your box, the ip address will be gone.
use
set_parms ip_address
and
set_parms addl_netwrk
or use sam.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 05:50 AM
тАО04-29-2003 05:50 AM
Re: configuring a gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 06:48 AM
тАО04-29-2003 06:48 AM
Re: configuring a gateway
route add default A.B.C.D 1
where A.B.C.D is the IP address of the gateway router.
This will work fine until the next reboot.
If you want it to remain after a reboot you need to modify the /etc/rc.config.d.
You do this using vi. I assume you may not know how to use it so will throw in some of the commands. You will need to be root for this to work. You might want to practice a little on another text file just to get the hang of it. (You can exit without changing anything by typing :q!)
vi /etc/rc.config.d
This will bring up the file. Now just hit
"# For each additional route, add a set of variable assignments like the ones
# below, changing the index to "[1]", "[2]" et cetera.
#
# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements"
I like to leave a few spaces then:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="A.B.C.D"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
Where A.B.C.D is the gateway's IP address. You need to type an "a" to get into the append mode. Then type what you need and when finished hit the
While there you might want to check that your ip address and mask setup has been saved correctly. You will need:
LANCONFIG_ARGS[0]="ether"
DHCP_ENABLE[0]=0
somewhere before the default route statement and the following at the end.
GATED=0
GATED_ARGS=""
#
# Router Discover Protocol daemon configuration. See rdpd(1m)
#
# RDPD: Set to 1 to start rdpd daemon
#
RDPD=0
IP_ADDRESS[0]=A.B.C.E
SUBNET_MASK[0]=255.255.255.0
INTERFACE_NAME[0]=lan0
BROADCAST_ADDRESS[0]=A.B.C.255
INTERFACE_STATE[0]=up
Where A.B.C.E is the address of you assigned.
You can view the finished product with
cat /etc/rc.config.d/netconf
inetd -c
will cause it to reread the netconf file.
Ron