creating virtual nic permenant

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat creating virtual nic permenant
# 1  
Old 05-08-2012
creating virtual nic permenant

am try to create another network card as virtual eth0:1
but when i restart the server it want be appear i have to create it again what is the solution for this .
# 2  
Old 05-08-2012
How did you create it?

Technically none of the Linux kernel settings except compiled-in ones are permanent, they get set by system init scripts and the like on boot.

Last edited by Corona688; 05-08-2012 at 07:24 PM..
# 3  
Old 05-08-2012
am using this command ifconfig eth0:1 192.168.168.1.5 netmask 255.255.255.0
and i have read you have to create in config file for it.
# 4  
Old 05-08-2012
From memory, not tested. Create an alias interface configuration file named "ifcfg-eth0:1" Put it in the same directory as your "ifcfg-eth0". It should have something like the following in it:
Code:
DEVICE=eth0:1
IPADDR=192.168.168.5    
ONBOOT=yes

# 5  
Old 05-12-2012
i have create another file ifcfg-eth0:1 and then i change device= eth0:1 but am getting error to get new ipaddress.
# 6  
Old 05-14-2012
Create a file named ifcfg-eth0:0 under /etc/sysconfig/network-scripts/ folder with the below sample contents

sample:
DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.99
NETMASK=255.255.255.0

restart your network service / reboot your machine...
This User Gave Thanks to novaothers For This Post:
# 7  
Old 05-14-2012
am getting this error when try to up the first nic eth0


SIOCSIFADDR:File exists
SIOCSIFFLAGS:cannot assign requested address
SIOCSIFNETMASK:cannot assign requested address
SIOCSIFADDR:cannot assign requested address
SIOCSIFBROADCAST:cannot assign requested address
SIOCSIFBRDADDR:cannot assign requested address

---------- Post updated 05-15-12 at 12:23 AM ---------- Previous update was 05-14-12 at 09:03 AM ----------

thanx geek after all , what i did i have added to /etc/rc.local and it is working fine now.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Add two different subnet public IPs to single NIC or two different NIC on same box

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

2. Red Hat

I want to tune NIC's rps, rfs and xps value. which NIC device should I modify.

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

3. UNIX for Dummies Questions & Answers

Creating a virtual Interface to recieve snmp traps

All, I have a question regarding setting up a virtual interface to recieve snmp traps from network devices. My Solaris 10 server is running the HPOV-NNMi application. The network devices in our environment (many thousands) are all pre-configured to send their snmp traps to a specific IP... (4 Replies)
Discussion started by: turk22
4 Replies

4. Solaris

create Virtual NIC in Solaris 10

Hi All, does any body know how to create Virtual NIC in Solaris 10 if any one have good article or reference kindly provide me i try to Google but i didn't find good one (7 Replies)
Discussion started by: jamisux
7 Replies

5. Solaris

MAC spoofing a virtual NIC on Solaris 5.0

Hi everybody! I'm facing a problem and I doubt about the solution (I'm not very familiar with old *NIXs). An external network supplier (let's call them "telco") just installed new communication components that filters MAC addresses. I have a Solaris 5 server, with 1 NIC (hte0) which is... (6 Replies)
Discussion started by: Isharfoxat
6 Replies

6. HP-UX

how can I determine which NIC card is virtual NIC Card

how can I determine which NIC card is virtual NIC Card which condition can make a decision Does HP UX have Virtual Network Adapter Concept if ,it has where I can Find if I Install Virutal Network Adapter or which command that i can get it or which software can generate thanks (2 Replies)
Discussion started by: alert0919
2 Replies

7. Solaris

How to check Virtual NIC card speed on solaris

Hi, We have a 4 port Sun gigaswift NIC card on our sun fire server. If the card is a physical one I know how to check the settings/speed. But since this is a virtual card with 4 ports , I am not sure as how we can check the settings. Details ----------- root:/> ifconfig -a lo0:... (3 Replies)
Discussion started by: pray44u
3 Replies

8. IP Networking

Binding Virtual IP address to NIC

Hi, I bound a virtual IP to a network card on my E450 server and I am getting this error when I reboot the server, saying, " retrying host, RPC time out. I had to break this sequence and allow other services to load. Of course they didn't load properly. Please how can I sort this out? I do need... (8 Replies)
Discussion started by: Ronny
8 Replies

9. UNIX for Dummies Questions & Answers

creating virtual ip addresses

i am running solaris 9 i now how to create virtual ip address but how do i keep them so when the server reboots they are still there?...THANX (2 Replies)
Discussion started by: rmuhammad
2 Replies
Login or Register to Ask a Question