Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12th January 2010, 12:32 AM
varinder Offline
Registered User
 
Join Date: Jun 2008
Location: Toronto
Posts: 52
windows_xp_2003firefox
Setting up Fedora Linux(12) box as router (networking eth0 and eth1)

I am trying to setup linux box as router. What i am trying to do is


1. I am trying to setup NIC via network not NetworkManager
2. I have assigned the ip to both NIC with #ifconfig eth0 192.168.1.1
3. #Ifconfig shows my nic and ip
4. restart the service network .
5. #ifconfig shows nothing. NO NIC card

i dont want the network manager coz i dont want to install the gui on router and network manager works only in gui mode. ( i think my this understanding is correct)

I tried to configure the NIC with Network Manager

when ever i restart the network service i have no out put from ifconfig

i tried to configure the NIC with #setup command as well and select the dhcp option


I can not find any ifcfg-eth0 in /etc/sysconfig/networking-scripts/


Any idea Hint Please


Thanks

Sorry i forget to mention about hardware i just bought yesterday

HP desktop
AMD 3200
512 MB ddRAM
__________________
:) Soldier never tired

Last edited by varinder; 12th January 2010 at 01:13 AM. Reason: Forget to proviide HW information
Reply With Quote
  #2  
Old 12th January 2010, 01:26 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfedorafirefox
Disable the NetworkManager Service. (chkconfig NetworkManager off)
Use the system-config-network command to set up the network to NOT use NetworkManager, to start at system startup, include the hostname, the IP, the mask and the gateway address. Also include the DNS server address(es) on the DNS tab.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 12th January 2010, 01:30 AM
Magickman's Avatar
Magickman Offline
Registered User
 
Join Date: Oct 2008
Posts: 326
linuxfedorafirefox
varinder , you can try this, what the above poster siad, if you get it working let me know. I have tried many times since Fedora 6, in which such a thing as a static IP was actually possible using only "Network" in system services. Never one time could I make Fedora boot up with my connection automatically configured. I have a cable modem, and have to use a dynamic DNS address. Wish I had a static one again.
Reply With Quote
  #4  
Old 12th January 2010, 01:38 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfedorafirefox
If you must use synamically assigned addresses then you will have to setup dhcp to do this.

BTW to see all interfaces try : ifconfig -a or ip link
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #5  
Old 12th January 2010, 02:00 AM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
To see if Linux see your network cards
# lspci |grep Ethernet and # dmesg |grep eth

Could try to make you own ifcfg-ethX

DEVICE=ethX
BOOTPROTO=none
HWADDR=00:141:17:32:B5
IPADDR=192.168.X.XX
NETMASK=255.255.255.0
ONBOOT=yes

If you do not know what your netmask should be you can run # ipcalc -m 192.168.X.XX to get it.
easy way to get HWADDR is to # ifconfig ethX up
and also do
# chkconfig --level 35 network on

This website may help
http://www.yolinux.com/TUTORIALS/Lin...etworking.html

Last edited by scott32746; 12th January 2010 at 02:20 AM.
Reply With Quote
  #6  
Old 12th January 2010, 12:00 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfedorafirefox
Quote:
Originally Posted by scott32746 View Post
To see if Linux see your network cards
# lspci |grep Ethernet and # dmesg |grep eth
Neither of these commands is reliable. lspci lists all the pci connected devices, but not all will have a pci.ids string containing "Ethernet" Some may be "Network" or :Wireless" or others. Also if there is no pci.ids match there will be no string description at all.

Do
lcpci -nnk | less
and look for the devices and their listed drivers. If any have no driver *then* look for the dmesg

dmesg shown the kernel messages but again "eth" is not necessarily in there. you might see "wifi" or others.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 12th January 2010 at 12:06 PM.
Reply With Quote
  #7  
Old 12th January 2010, 02:56 PM
varinder Offline
Registered User
 
Join Date: Jun 2008
Location: Toronto
Posts: 52
linuxfedorafirefox
I really really appreciate the help i got you from guys

I did it successfully, still one question in mind. Let me explain

I did the following things

#service NetworkManager stop
#chkconfig NetworkManager off

from gui i select System->Administration->Network

and did all things means.. On boot selected yes. Controlled by networkManager --no

and it works fine. and it made changes to /etc/sysconfig/network-scripts/ifcfg-eth0 automatically..


it works fine..

But my question/doubt in mind

I did it through gui.. the alternative is i can manually edit/put all the things in /etc/sysconfig/network-scripts/ifcfg-eth0 file.

But why it is not working when i tried the command #system-config-network

it gives me text based menu(same as with #setup command) to configure the network card. and this menu does not have option to 'activate the NIC at boot' (that was the reason for problem)

thanks
__________________
:) Soldier never tired
Reply With Quote
Reply

Tags
eth0, eth1, fedora, networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0 is now eth1 - how to fix? dchicks Hardware & Laptops 2 12th January 2009 11:03 PM
Fedora 9 on ASUS eee pc 901 Networking eth0 Logik Using Fedora 5 22nd August 2008 06:51 PM
eth0 to eth1 tronic Servers & Networking 3 23rd January 2007 09:27 PM
eth0 and eth1 pedrolopes Servers & Networking 2 19th February 2005 02:02 PM
ipw2100 and fedora core 3 problem eth0 and eth1 changed??? nurdin Hardware & Laptops 1 13th November 2004 05:50 AM


Current GMT-time: 09:04 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat