02-25-2002
You re wellcome. You can also add an alias to your interface with ifconfig. You can write ifconfig eth0:x <IP ADDRESS> netmask <NETMASK>. But then you must add with route a default gateway to your routing table for the new IP address.
10 More Discussions You Might Find Interesting
1. Linux
Had problems in configuring USB memory stick in RHL 9.
Please assist.
With regards,
Kungra. (1 Reply)
Discussion started by: kungra2006
1 Replies
2. Shell Programming and Scripting
Hi,
I want to configure 2-gateways in Linux .
Please tell me how I can achieve this. I am accesing 2-internet
connection through these 2-gateways. So I am looking that
if 1-gets down then also other one is working.
Regards
JAGDISH (1 Reply)
Discussion started by: jagdish.machhi@
1 Replies
3. Solaris
hi friends,
I have brand new Sun Ultra 20 WS installed.
It was preinstalled with Solaris 10 6/06 system,
in ifconfig -a command only loop back intervace is showing.
and
/etc/path_to_install also not able to find the interface name.
my questions are:
1. Is there any command to get... (1 Reply)
Discussion started by: subhankar
1 Replies
4. Red Hat
Hi All
when I give the command,
$ ping <hostname>
I get the following error
ping: unknown host <hostname>
I have checked in the following files,
/etc/sysconfig/network
/etc/hosts
/etc/resolv.conf
/etc/nsswitch.conf
Every where in these files host name and IP address are given... (2 Replies)
Discussion started by: nagapradeep
2 Replies
5. AIX
I have a server with multiple network interfaces. 2 of these interfaces, lets say en2 and en6 make up an etherchannel interface, which let's say en8.
when I run the command
lsattr -El ent8
I can see the designated primary and backup interfaces as ent6 and ent2, in the given order. But... (10 Replies)
Discussion started by: thenomad
10 Replies
6. UNIX for Advanced & Expert Users
Can anybody please explain the below table to monitor NTP daemon status
This contains many columns like remote,refid,st....various values corresponding to those columns
If possible provide me any link to study about these quantities clearly.
It is very much required for my project please... (3 Replies)
Discussion started by: sgand
3 Replies
7. IP Networking
i have a linux server runnig oracle applications.
i need to access this server from putty using ssh through internet.
i did by registering my static ip with the dnydns.org and i am able to connect to the server.
but now there is no security to authenticate any user as any one knowing the... (6 Replies)
Discussion started by: u.n.i.x
6 Replies
8. Infrastructure Monitoring
I am trying to enabling SNMP access and trap forwarding for Linux(RHEL5) using following official url from IBM.
http://publib.boulder.ibm.com/infocenter/eserver/v1r2/index.jsp?topic=/diricinfo/fqm0_t_enabling_snmp_access_and_trap_forwarding_for_linux.html
In my system, snmp and snmplibs are... (1 Reply)
Discussion started by: SiddhV
1 Replies
9. IP Networking
Can someone help with a detail step-by-step oh how to configure DNS server on Linux Server.
-
I need to have 3 IP addresses map to a single hostname.
for clients
I'm a Linux rookie.
Thanks
Oscar (1 Reply)
Discussion started by: FrankOscar
1 Replies
10. Red Hat
Dear Experts,
We have requirement to configure Dot matrix printer in linux, Also need to register in Oracle application R12.0.6 version where i need get the print in landscape format.
Request you all kindly help on the same.
Thank you,
Alone.
---------- Post updated 02-18-14 at 01:02... (6 Replies)
Discussion started by: Alone
6 Replies
LEARN ABOUT DEBIAN
ifscheme
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)