LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2003, 08:04 PM   #1
friddick
LQ Newbie
 
Registered: Oct 2002
Location: Tampa, FL
Distribution: Redhat 7.1
Posts: 12

Rep: Reputation: 0
Question Trying to setup Linux networking (Static to ISP)


Trying to setup Linux networking (Static to ISP)

I currently have a Windows network that's working fine and I'm trying to add a Linux server to it, but can't quite get it right. This is my first real attempt to cross into the Linux world and I've gone thru the documentation that Redhat provides and I'm still lost. I even went to the bookstore and browsed but nothing seemed to make sense. I do want to get some reference books, but not knowing Linux, can't really tell the good ones for newbies vs. the bad ones.

I have a DSL Internet connection with 3 IP addresses (let's say 36.116.72.103, 104 and 105). I've switched some numbers around so the actual IP addresses are not shown to the whole world.

I have the config working as diagramed below except IP3 was assigned to the Windows 2000 Server, so I know that it works. It's probably that I just don't know how to config Linux correctly. I assigned the IP to eth0 just fine, but I'm not quite sure where to put the other info (DNS Servers) and (Gateway)

Well, here's the info

Router: Netgear RT314 (WAN: 36.116.72.103) (LAN: 192.168.0.10)
------------------------------------------------------------
NT4 Srv: Microsoft SBS v4.5, two NIC's (one disabled) , PDC [Domain: WORKZ]
NIC_1: 192.168.0.1
NIC_2: 36.116.72.105 (disabled)
eventually I plan to enable the other NIC to IP2
------------------------------------------------------------
W2k Srv: MS BackOffice Server two NIC's, PDC [Domain: groupworkz.net]
(OFFLINE)
NIC_1: 192.168.0.2
NIC_2: 36.116.72.104
------------------------------------------------------------
RH7 Srv: Redhat Linux 7.1 one NIC right now, [Domain: groupworkz.com]
NIC_1: DHCP (plugged into Router works fine), but
NIC_1: 36.116.72.104 (plugged into Hub in place of W2k doesn't get out)
------------------------------------------------------------
36.116.72.103 IP Number 1
36.116.72.104 IP Number 2
36.116.72.105 IP Number 3

255.255.255.0 Subnet Mask

36.116.72.1 Default Gateway

217.33.166.2 DNS Servers
217.33.166.61
------------------------------------------------------------

DSL (with 3 IP's)
|
----Hub
.....+.-----.Router (WAN IP: 36.116.72.103 - LAN IP: 192.168.0.10)
...............+.Windows Client PC (LAN IP: 192.168.0.11)
...............+.Windows Client PC (LAN IP: 192.168.0.12)
...............+.Windows Client PC (LAN IP: 192.168.0.13)
...............+.Windows Client PC (LAN IP: 192.168.0.14)
...............+.Windows Client PC (LAN IP: 192.168.0.15)
.....+
.....+.-----.N/A
.....+
.....+.-----.NT4_Server.(LAN IP: 192.168.0.1 - WAN IP: 36.116.72.103)
.....+
.....+.-----.W2K_Server.(LAN IP: 192.168.0.2 - WAN IP: 36.116.72.104) OFFLINE
.....+
.....+.-----.RH7_Server.(IP: DHCP - plugged into Router works fine)
.....+.-----..PROBLEM...(IP: 36.116.72.104 - plugged into Hub in place of W2k doesn't get out)
.....+.-----....later...(WAN IP: 36.116.72.104)
.....+.-----....later...(LAN IP: 192.168.0.7)

Last edited by friddick; 07-30-2003 at 05:06 AM.
 
Old 07-26-2003, 05:31 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Moving to the Linux - Networking Forum

To set the DNS in linux, you place the IP's of your DNS server in /etc/resolv.conf just like so:
nameserver 1.2.3.4
nameserver 4.3.2.1
nameserver 2.3.1.4
search isp-nameserver.com

Where 1.2.3.4 is the IP's, and isp-nameserver.com is the actual name of your ISP's nameserver...

And to set the gateway, I believe the command is similar to:
route add default gw 255.255.255.0
Of course replacing 255... with your actual Gateway.

You can also look at setting all this up in your networking startup scripts, unfortunately I don't know RH that well to give you great answers on how exactly. Consult the docs on doing that, or wait for someone who knows to come along and follow up on this

Welcome to LQ

Cool
 
Old 07-30-2003, 04:47 AM   #3
friddick
LQ Newbie
 
Registered: Oct 2002
Location: Tampa, FL
Distribution: Redhat 7.1
Posts: 12

Original Poster
Rep: Reputation: 0
Well, here's the new info... Get's out to internet fine.
Now I can't seem to ping or browse from outside to Apache running on Linux (http://36.116.72.103 ) inside or outside, but when I'm on Linux box I can ping and browse (http://36.116.72.105 and http://localhost). ping http://localhost returns 127.0.0.1. I think I'm on the right track, but it seems something is wrong with DNS.

Oh by the way, when outside the network I can ping http://domain.com, it returns the correct IP but I get a "Request timed out. Still get to http://otherdomain.com and http://36.116.72.105 just fine at http://36.116.72.103

When inside the network and I ping http://domain.com, it returns the correct IP and gets appropriat resonse times. Still get to http://otherdomain.com just fine at http://36.116.72.103

Router: Netgear RT314 (WAN: 36.116.72.103) (LAN: 192.168.0.10) otherdomain.com
------------------------------------------------------------
NT4 Srv: Microsoft SBS v4.5, two NIC's (one disabled) , PDC [Domain: WORKZ]
NIC_1: 192.168.0.1
NIC_2: 36.116.72.106 (Will be 106 - Currently diasbled)
eventually I plan to enable the other NIC to IP2
------------------------------------------------------------
W2k Srv: MS BackOffice Server two NIC's, PDC [Domain: groupworkz.net]
(OFFLINE)
NIC_1: 192.168.0.2
NIC_2: 36.116.72.104
------------------------------------------------------------
RH7 Srv: Redhat Linux 7.1 one NIC right now, [Domain: groupworkz.com]
NIC_1: 36.116.72.105
------------------------------------------------------------
36.116.72.103 IP Number 1 - Router
36.116.72.104 IP Number 2 - BackOffice 2K (Currently OFFLINE)
36.116.72.105 IP Number 3 - Linux Redhat

255.255.255.0 Subnet Mask

36.116.72.1 Default Gateway

217.33.166.2 nameserver.net - DNS Servers
217.33.166.61 nameserver.net
------------------------------------------------------------

DSL (with 3 IP's)
|
----Hub
.....+.-----.Router (WAN IP: 36.116.72.103 - LAN IP: 192.168.0.10)
...............+.Windows Client PC (LAN IP: 192.168.0.11)
...............+.Windows Client PC (LAN IP: 192.168.0.12)
...............+.Windows Client PC (LAN IP: 192.168.0.13)
...............+.Windows Client PC (LAN IP: 192.168.0.14)
...............+.Windows Client PC (LAN IP: 192.168.0.15)
.....+
.....+.-----.N/A
.....+
.....+.-----.NT4_Server.(LAN IP: 192.168.0.1 - WAN IP: 36.116.72.106
.....+.-----.... (will be 106 Currently not connected)
.....+
.....+.-----.W2K_Server.(LAN IP: 192.168.0.2 - WAN IP: 36.116.72.104) OFFLINE
.....+
.....+.-----.RH7_Server.(IP: 36.116.72.105 - gets out fine NOW)
.....+.-----..PROBLEM...(can't ping 36.116.72.105 or domain.com)
.....+.-----....later still plan to ...(LAN IP: 192.168.0.7)

P.S. All internal IP's are listed acurately. The external IP's are correct after x.x.x.103 thru x.x.x.105

Last edited by friddick; 07-30-2003 at 05:07 AM.
 
  


Reply


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 setup samba for winxp/linux networking Ay-Karamba! Linux - Networking 2 08-27-2005 08:04 PM
ISP setup emailssent General 1 09-30-2004 12:43 AM
LAN Networking with 2 ISP intune Linux - Networking 1 07-18-2004 11:15 AM
How to fool my ISP into accepting a static ip address, when it delivers via DHCP? vdemuth Linux - Networking 3 04-12-2004 11:07 AM
Static Ip Networking dook Linux - Networking 24 12-06-2003 07:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration