LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-08-2005, 03:57 PM   #1
WireLine
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
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
Code:
ifconfig eth0:2 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 up
ifconfig eth0:3 192.168.12.1 netmask 255.255.255.0 broadcast 192.168.12.255 up
ifconfig eth0:254 10.0.0.1 netmask 255.0.0.0 broadcast 10.255.255.255 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
WireLine
LQ Newbie
 
Registered: Jan 2005
Posts: 17

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:42 PM.

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