11-17-2005
I run centOS, and my gw is configured in the following file:
# pwd
/etc/sysconfig
# cat network
NETWORKING=yes
HOSTNAME=smpbox.home.com
GATEWAY=192.25.237.254
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can I change the gateway address on my sco Openserver 5.0.6. A cisco firewall is recently installed but the gateway on the system is still pointing at the old one.
I want it to use the gateway address of the router.
Please help. Thanks (2 Replies)
Discussion started by: sshokunbi
2 Replies
2. IP Networking
I used "route" to add the default gateway
I wrote this:
route add default 19x.x.x.x 0
but this is not permanent default gateway.
Do I need to use another command?
Thank a lot (2 Replies)
Discussion started by: lmena
2 Replies
3. Programming
how we can get the gateway address.
i know gethostname used for ipaddress
how we can get the system gateway address.
thank u inadvance,
sree (2 Replies)
Discussion started by: phani_sree
2 Replies
4. SCO
Hy everybody !
I'm new on your forum, i'm french and don't speak a good english, so scuse me please for it !
I would to know how modify a gateway on a SCO 5.06
We have a problem, we have multi "beach" adress, one is 192.1.1.x, an other is 192.1.4.x
Actually, the computer on 192.1.4.x... (2 Replies)
Discussion started by: LB59
2 Replies
5. AIX
Dear folks,
How can delete the gateway from smitty or by command, Because I have 2 gatway in the system and I tried to delete by smitty it gave me failed command (7 Replies)
Discussion started by: magasem
7 Replies
6. AIX
Hi,
I have two interfaces on m AIX 5.3 box. One going to 192.168.1.x and it has a gateway of 192.168.1.1.
I configured the other gateway with 192.168.2.x and the default gateway as 192.168.2.1. But I can't get connectivity to the 192.168.2.1 network. Can someone help me out and let me know... (7 Replies)
Discussion started by: bbbngowc
7 Replies
7. Solaris
Hi all,
Just now i had change the gateway for a server
Go to /etc/defaultrouter, change to 10.86.33.1
route delete default 10.86.39.222
route add default 10.86.33.1
now cannot telnet to the server already..
any idea? (5 Replies)
Discussion started by: SmartAntz
5 Replies
8. AIX
Hello,
I am new to Unix :D and have been trying to configure an AIX server running 5.3. I used smitty or smit to configure interface 0 on the server. I am able to ping the IP I set, however I am still unable to ping the gateway. I configured the IP by navigating to Communications Applications... (6 Replies)
Discussion started by: cdub50
6 Replies
9. Linux
Dear Sir
I am a newbie in the world of IP telephony. I have been working with Asterisk PBX (SIP) and Cisco Call Manager (MGCP) but now I am learning on how to work GNUGK for H.323 Gatekeeper.
I am having a problem, configuring static call routing on GNUGK
in the section
... (0 Replies)
Discussion started by: mfondoum
0 Replies
10. UNIX for Beginners Questions & Answers
Dear friends
I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies
LEARN ABOUT DEBIAN
ifscheme-mapping
IFSCHEME(8) Commands IFSCHEME(8)
NAME
ifscheme - scheme control for network interfaces
SYNOPSIS
ifscheme [-v] [[-s] newscheme]
mapping <interface> script ifscheme-mapping
DESCRIPTION
ifscheme allows you to change network configuraton schemes or query the current scheme. It integrates with the ifup(8) command and inter-
faces(5). For example, you might use this program to configure a "home" scheme and a "work" scheme for a network device on a laptop. When
you move between home and work, a simple command can reconfigure your networking.
If you run the program with no parameters, it will tell what the current network scheme is.
The ifscheme-mapping utility is used to tell the ifup and ifdown utilities about the current scheme.
OPTIONS
-v
--verbose
Run in verbose mode. This is passed in to the ifup and ifdown programs as well.
-l
--list list all schemes available/defined in /etc/network/interfaces.
newscheme
-s newscheme
--scheme newscheme
Change to a new network configuration scheme. When the scheme is changed, network interfaces that were using the old scheme will be
taken down and brought back up to use the new configuration scheme. -s or --scheme are mandatory if newscheme begins with a -.
CONFIGURATION
To make the program do anything useful when a scheme is selected, you must edit /etc/network/interfaces to add a mapping for the interface
(or interfaces) that can be controlled on a per-scheme basis. Suppose you want to control eth0 in this way. You might have an existing eth0
configuraton in there, such as:
auto eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1
To change this so you can chose between static routing and dhcp, replace it with the following (it helps to ifdown the interface first).
auto eth0
mapping eth0
script ifscheme-mapping
iface eth0-home inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1
iface eth0-work inet dhcp
Now if you run "ifscheme home" and ifup the interface, you'll get the eth0-home configuration stanza. If you run "ifscheme work", it will
be changed to the eth0-work stanza. You can add additional stanzas as desired, but the label must always be of the form <hardware inter-
face>-<scheme name>.
If you have a second interface (perhaps a wireless network card on eth1), you can duplicate the above for that interface, changing the eth0
and the configuration details as appropriate, but remember to add an iface stanza for every scheme name for the second interface.
FILES
/etc/network/interfaces
the interfaces definition file
/etc/network/run/scheme
the current scheme
/etc/network/run/ifstate
a record of the current state of the interfaces, managed by ifup and ifdown
BUGS
All schemed interfaces will have the same scheme.
Any schemed interface which does not have an entry for the current scheme and is not configured when the scheme is changed will not be suc-
cessfully configured when it is brought up.
SEE ALSO
interfaces(5) ifup(8) ifdown(8)
DISTRIBUTION
Redistribution is subject to the GNU public license.
AUTHORS
Joey Hess <joey@kitenet.net>, Peter Wilson <pwilson@cs.hmc.edu>
IFSCHEME(8)