Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 06-08-2005, 03:57 PM   #1
LQ Newbie
Registered: Jan 2005
Posts: 17

Rep: Reputation: 0
Adding Network Interface alias from command line

How do I add a network alias interface from the command line? With system-config-network I can just click new and have a virtual interface added but how can I do it from the command line? This is a fedora core 3 box.
Old 06-08-2005, 10:49 PM   #2
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
ifconfig eth0:2 netmask broadcast up
ifconfig eth0:3 netmask broadcast up
ifconfig eth0:254 netmask broadcast up
i am sure you can get the idea from that.

if you want them to be permanent (persist through reboots, network service restarts, etc) you can create the file with appropriate information
located in /etc/sysconfig/network-scripts

to get a start use the ifcfg-eth0 file. cp ifcfg-eth0 ifcfg-eth0:1 and then edit it appropriately being sure to change DEVICE=eth0 to DEVICE=eth0:1

hope this helps
Old 06-08-2005, 11:08 PM   #3
LQ Newbie
Registered: Jan 2005
Posts: 17

Original Poster
Rep: Reputation: 0
I got it figured out. Thanks!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get back into command line interface bonniehandi Linux - Newbie 1 11-19-2005 12:07 AM
alias command line arguements Henster Linux - Newbie 2 07-01-2005 03:40 AM
cdrecord - command line interface satimis Linux - General 5 05-24-2005 07:15 PM
Can't get from command line interface to GUI dphildebrand Linux - Newbie 3 12-03-2003 01:51 PM
Which distro has the best command line interface ? lostboy Linux - Distributions 11 03-22-2003 07:34 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration