10-13-2008
Quote:
Originally Posted by
sysgate
one NIC can't have more than one IP address assigned, the "inet addr" section may accept only one IP. Are you looking for dhcp ?
This can be done using aliases..
on FreeBSD add something like this to your /etc/rc.conf
ifconfig_rl0="inet 192.168.x.xxx netmask 255.255.255.0"
hostname="yourhostnamet"
ifconfig_rl0_alias0="192.168.x.xxx netmask 255.255.255.0"
on Linux heres a howto
http://www.linuxselfhelp.com/HOWTO/mini/IP-Alias/
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I need a sample of a script that will check a specific directory multiple times throughout the day, and scp the newest file to another server.
Example: current file is misc_file.txt_02272011 (the last part is the date), once that has been secure copied, another one may come in later the... (1 Reply)
Discussion started by: richasmi
1 Replies
2. Solaris
I couldn't install my nic in solaris 10. I compiled and added
the driver but failed to attach the driver and ifconfig output
shows only loopback dev. Please see the following output and tell
me whether my nic has been detected and why the driver failed to
attach?
My nic is detected in linux... (0 Replies)
Discussion started by: vectrum
0 Replies
3. IP Networking
I am new in squid proxy.
My question is how to (and if it's necessary) to set one NIC for inbound traffic (http requests) and one NIC for outbound traffic (http answers)?
Thank you in advance! (4 Replies)
Discussion started by: aixlover
4 Replies
4. Shell Programming and Scripting
Hi ,
i need to configure around 80 printers in a server. can someone please help me with the script.
i have a file that has printer name and its ip.
like.
printer1 1.1.1.1
printer2 0.0.0.0
and so on.. can some one please help me to do it via script.
i am using solaris 10
... (0 Replies)
Discussion started by: chidori
0 Replies
5. Red Hat
Dear All
I want tune my NIC's rps, rfs and xps value.
In my system I have two NIC (eth0, eth1) and I have a bond0 ( eth0, eth1).
Here is the question? Which device should I modify ?
eth0 and eth1? or just modify bond0 or modify all device (eth0, eth1, bond0)
Any advice is welcome.... (0 Replies)
Discussion started by: nnnnnnine
0 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I am pretty new to the unix community and have encountered a problem that I am trying to solve. I have 2 files one of which is called passwd file that looks like the following
Sample Output
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
... (1 Reply)
Discussion started by: raven905
1 Replies
7. Shell Programming and Scripting
Hi,
I wrote a simple script, which will call other scripts or run commands on a UNIX server. my script has multiple steps/commands with some delay in between.
I usually get some email notifications after the successful execution of each step.
**My intention is to get email alerts when it is... (5 Replies)
Discussion started by: System Admin 77
5 Replies
8. Linux
Hello Admins,
My ask is how can I add two different subnet IPs to same box with two different gateways?
The issue is I can connect to the box when I am on ethernet LAN, but I am not able to connect to the same IP when I am on wifi. The server is RHEL 7 VM on vmware.
How can I get connected... (4 Replies)
Discussion started by: snchaudhari2
4 Replies
9. Shell Programming and Scripting
Hello,
I wrote several scripts that work with job arrays (sbatch) that look like this:
#!/bin/bash
#SBATCH --partition=carl.p
#SBATCH --ntasks=4
#SBATCH --time=0-10:00
#SBATCH --mem-per-cpu=48G
#SBATCH --job-name=basic_test
#SBATCH --mail-type=END,FAIL
#SBATCH --mail-user=
#SBATCH... (2 Replies)
Discussion started by: idbemad
2 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I am trying to use below syntax to find ignore multiple locations while searching for a file.
find / -name "$serviceitem" ! -size 0 2>&1 |egrep -v "tmp|docker|WinSxS|Permission|HISTORY|alternatives|bearer11ssl|manifest"
I tried to assign all the ignore strings to one variable... (2 Replies)
Discussion started by: sravani25
2 Replies
LEARN ABOUT DEBIAN
vlan-interfaces
VLAN-INTERFACES(5) File formats VLAN-INTERFACES(5)
NAME
/etc/network/interfaces (vlan) - vlan extensions for the interfaces(5) file format
DESCRIPTION
/etc/network/interfaces contains network interface configuration information for the ifup(8) and ifdown(8) commands. This manpage
describes the vlan extensions to the standard interfaces(5) file format.
Primary extensions exist to make and destroy vlan interfaces, secondary extensions exist for ipv4 interface manipulation which are gener-
ally needed when using (a lot of) vlans.
VLAN CREATION
Vlan interface definitions exist of the vlan interface name, and an optional 'raw-device' parameter. Vlan interfaces are numbered 1 to
4095. You have the option to have interface names zero-padded to 4 numbers, or just the plain digits without leading zero. The following
example shows four ways to create a vlan with id 1 on interface eth0. They all result in different names.
iface eth0.1 inet static
address 192.168.1.1
netmask 255.255.255.0
iface vlan1 inet static
vlan-raw-device eth0
address 192.168.1.1
netmask 255.255.255.0
iface eth0.0001 inet static
address 192.168.1.1
netmask 255.255.255.0
iface vlan0001 inet static
vlan-raw-device eth0
address 192.168.1.1
netmask 255.255.255.0
# We don't have br support out of the box
iface br0.2 inet static
vlan-raw-device br0
address 192.168.1.1
netmask 255.255.255.0
# Aliases are ignored
iface br0.2:1 inet static
address 192.168.1.1
netmask 255.255.255.255
EXTRA IFACE OPTIONS
Usually someone who uses vlans also wants to do some other manipulations with the ip stack or interface.
vlan-raw-device devicename
Indicates the device to create the vlan on. This is ignored when the devicename is part of the vlan interface name.
ip-proxy-arp 0|1
Turn proxy-arp off or on for this specific interface. This also works on plain ethernet like devices.
ip-rp-filter 0|1|2
Set the return path filter for this specific interface. This also works on plain ethernet like devices.
hw-mac-address mac-address
This sets the mac address of the interface before bringing it up. This works on any device that allows setting the hardware address
with the ip command.
AUTHOR
This manpage was adapted from interfaces(5) by Ard van Breemen <ard@kwaak.net>
SEE ALSO
vconfig(8) interfaces(5)
vlan September 30 2007 VLAN-INTERFACES(5)