Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Other Versions > EOL (End Of Life) Versions
FedoraForum Search

Forgot Password? Join Us!

EOL (End Of Life) Versions This is a Forum to discuss problems and workarounds for versions of Fedora that have passed End of Life.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th August 2011, 04:52 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
connecting fedora 13 to D-Link router for online access

My goal is to have two computers online through D-Link router. One runs windows xp and the other fedora 13. I want xp/firefox to be able to go online ( it can right now) and see fedora index file ( by typing in server ip behind router) so I can see my work through firefox as I build the server and go online with both.

I connected both computers with a crossover cable (offline), and I was able to see my index file thru firefox. Now I'm trying to connect both to internet thru router with cat5 cable.

xp is connected. Trying to add fedora. Connected fedora to router with cat 5 cable. Used ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up to bring up interface.

Tried to add routers ip address as default gateway to routing table with command: route add default gw 192.168.0.1 (ip for manual router web config) netmask 255.255.255.0

Bash response: SIOCADDRT: No such process.

cat /etc/sysconfig/network returns:

Networking=yes
Hostname=localhost.localdomain


cat /etc/sysconfig/network-scripts/ifcfg-eth0 returns:


DEVICE=eth0
ONBOOT=yes
HWADDR=2C3...
BOOTPROTO=none
IPADDR=192.168.1.2
NETMASK=255.255.255.0
TYPE=Ethernet


Does anyone know how to connect fedora to router for online access?
Reply With Quote
  #2  
Old 30th August 2011, 05:40 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,924
windows_xp_2003chrome
Re: connecting fedora 13 to D-Link router for online access

Plug an Ethernet cable into the router and plug the other end into the Fedora box.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 30th August 2011, 05:43 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
linuxfedorafirefox
Re: connecting fedora 13 to D-Link router for online access

Quote:
Originally Posted by settingsun View Post

Tried to add routers ip address as default gateway to routing table with command:
route add default gw 192.168.0.1 (ip for manual router web config) netmask 255.255.255.0

Bash response: SIOCADDRT: No such process.
First - you need to be root to set a route.
The SIOCADDRRT message just means the socket/stack ioctl to the stack failed.

The OLD DEPRECATED command is like .....
route add default gw 192.168.0.1
or
route add default gw 192.168.0.1 netmask 255.255.255.0
which are identical.

Note that DEFAULT and netmask are not meaningful together.


The modern correct way to do this is ....
ip route add default via 192.168.0.1 proto static
or
ip route add default via 192.168.0.1 dev eth0 proto static
Change 'eth0' to the interface you intend the route to apply to.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 30th August 2011 at 05:45 PM.
Reply With Quote
  #4  
Old 30th August 2011, 06:44 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
Re: connecting fedora 13 to D-Link router for online access

I typed in: ip route add default via 192.168.0.1 proto static

Bash returned: RTNETLINK answers: No such process.

I typed which iproute

No iproute. I'll have to download that when I get connected.


How do I find the right name for the router so I can place it where eth0 is in the route command?

Thank you
Reply With Quote
  #5  
Old 30th August 2011, 08:05 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
linuxfirefox
Re: connecting fedora 13 to D-Link router for online access

It's
ip route

not
iproute


I should have read your first post closer ...
Here is the problem

...
IPADDR=192.168.1.2
NETMASK=255.255.255.0
...


So that interface CAN'T access the gateway at 192.168.0.1

You want both of your system to be on the same LAN right ?
So both need addresses like 192.168.0.*

CHANGE it to
IPADDR=192.168.0.2
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 30th August 2011 at 08:27 PM.
Reply With Quote
  #6  
Old 30th August 2011, 11:52 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
Re: connecting fedora 13 to D-Link router for online access

I went in the the GUI network utility and now everything pings and I can see my fedora index page by typing the ip into firefox. Everything behind the router works if I use ip addresses only.

I still want to learn how to do this on the command line.


I typed: which ip route.

Bash returned:

/sbin/ip
/sbin/route



Not sure from that response if I have the iproute binary. Also, I need to learn how to set up DNS resolution, so I can ping urls out side my network, and use yum.


The router's WAN configuration shows 2 DNS ip addresses. Do I put those in the DNS fields of the of the network GUI utility, or do I put the router's private ip address there? In other words, since the DNS ip's are part of the WAN addressing of the router (it's public side), does fedora's yum utility need them ( can it see them?) from behind the router? Or does yum need to see the router's private ip so the router itself can forward DNS resolution requests to those public facing DNS server ip addresses?

Thank you

---------- Post added at 06:52 PM ---------- Previous post was at 03:45 PM ----------

Got it. It works. Thank you.

I did it through the network GUI. I want to learn to do it through the command line. The strange thing is I went to /etc/resolv.conf and entered the keyword nameserver, then the DNS ip my router showed me, twice.

It didn't work. I did it again through the GUI ( using the same keyword, ip's and format) and it did work. I cat the /etc/resolv.conf file after I got it to work and it shows me exactly what I put in it when it didn't work. I'm obviously still missing details somewhere.

At least now I have a set up that works that I can use to learn more from.


Thank you!
Reply With Quote
  #7  
Old 31st August 2011, 12:45 AM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,201
linuxfirefox
Re: connecting fedora 13 to D-Link router for online access

A bit delayed, but moved to EOL (F13's history now)
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
Reply

Tags
access, connecting, dlink, fedora, online, router

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
Router disconnects on connecting Fedora 14 machine elyazalmahfouz Servers & Networking 9 6th January 2011 09:34 PM
connecting a FON router to a Fedora laptop nikolay12 Servers & Networking 0 25th September 2010 05:39 PM
Fedora locks up connecting by wireless to OpenWRT router paulch Servers & Networking 3 17th November 2009 06:51 PM
connecting fedora 9 to a wireless router kam05r Servers & Networking 5 22nd May 2008 12:31 AM


Current GMT-time: 16:56 (Saturday, 18-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