LinuxQuestions.org
Help answer threads with 0 replies.
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-19-2004, 07:17 AM   #16
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48

Gubak..

I suggest you hide your external number, eg 212.200.xxx.xxx
Posts stay forever on the forums and we can't control who reads them..

If your ISP gave you a gateway of 10.5.5.1 they must also give you a suitable ip address and subnet to talk to it, eg 10.5.5.34

Maybe you need to set your ip as dhcp and see if it picks one up automatically..
 
Old 07-19-2004, 09:25 AM   #17
Bill Gates 666
Member
 
Registered: Dec 2003
Location: Cambridge
Distribution: Arch, Gentoo, OpenSUSE
Posts: 70

Rep: Reputation: Disabled
This question is unanswerable!!

Gubak

You'll need to draw an ASCII diagram of your network indicating what hardware you are using. Especially now the thread has been moved.

Is it like this?

RedHat
Windows ------------------- Linux (unspecified) ---------- Hardware ADSL/cable modem
Wireless Ethernet
10.5.5.1 10.5.5.xxx 212.200.122.123


The dual-boot box is a DHCP wireless client of a Linux gateway box. The gateway box has a NIC connected to your ISP via a hardware external modem.

Or do you use a wireless ISP?

You need to be much less vague when posting if you expect any help!!

____________
Bill Gates #666
 
Old 07-19-2004, 09:48 AM   #18
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
I have set this ip (212.200.122.123) and this mask (255.255.255.248) and this gateway (10.5.5.1) manualy. The DHCP is disabled.
In windowsXP everything is OK, but in RedHat9 linux I have the problem.
I have only one network card in my PC (212.200.122.123) which is physicaly connected (wireless) to the Gateway machine (10.5.5.1).
 
Old 07-19-2004, 09:58 AM   #19
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
you can not do that. the ip and subnet, by definition, are not on the same network as the gateway you are talking about. what computer is this gateway, where does it exist? is it on your home network?

What does your network look like? how many machines? how are they connected?
 
Old 07-19-2004, 10:25 AM   #20
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Gubak

You can insert an image using the post reply button. Please draw up a network diagram (using Gimp / a tool of your choice) of all the important components involved in your network -

From the point the ISP drops the cable in your premises upto your Linux box.
I feel we are all not clear about your network and are unable to provide any effective help. Please include the IP addresses. As suggested by peter_robb, you can mask the last part of your public IP address with xxx to ensure privacy.
 
Old 07-20-2004, 03:09 AM   #21
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
My network is like that:


RedHat9 - computer..........................G a t e w a y - computer
NIC1..........................................NIC1...................NIC2
ip: 212.200.122.xxx...................ip: 10.5.5.1........ip:192.168.111.xxx
mask:255.255.255.248--------- mask: 0.0.0.0.....mask: 255.255.255.xxx-----
gateway: 10.5.5.1





.........................Other
----------------- network
.........................(internet)


The cabel is UTP.
If I use winxp instead of RedHat9 with the same data (ip, mask, gateway) system works, but with RedHat9 I can't see the gateway computer (NIC1 10.5.5.1).
Linux gives me the message: "The network is unreachable"

Last edited by gubak; 07-20-2004 at 03:12 AM.
 
Old 07-20-2004, 03:16 AM   #22
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
basically if you arnt using a router, which i belive you arnt. you need a switch/hub. the computer that has the internet connection (gateway) needs two NIC's in it. one of those NICs will be configured with the IP settings that your ISP gave you. The other NIC in the gateway computer will need a 10.X.X.X address. All the other computers you have in your network will need to point to that 10.X.X.X address as their gateway.
 
Old 07-20-2004, 03:29 AM   #23
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
You mean that the network what I have showed is impossible to work?
 
Old 07-20-2004, 03:31 AM   #24
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
yes.
 
Old 07-20-2004, 03:42 AM   #25
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
But why does it work by windows?
 
Old 07-20-2004, 03:53 AM   #26
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
presuming that the windows machine is the "gateway", then that is the route to the outside world. its difficult to tell on you diagram because, and please dont take offence, its a mess.

how many computers do you have on that network there? is it two? does the gateway that you have there have two nics in it? is that what you are indicating there?
 
Old 07-20-2004, 04:13 AM   #27
lynos
Member
 
Registered: Mar 2004
Distribution: RedHat, Centos, Ubuntu
Posts: 52

Rep: Reputation: 15
Hi gubak,

I think you should add a virtual interface like eth0:1 on your linux box.

Try to edit a file in your network-scripts directory ( for redhat /etc/sysconfig/network-scripts)


...#cd /etc/sysconfig/network-scripts/

...#vi ifcfg-eth0:1

and than put this script that you modified for your network


# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=10.5.5.1
TYPE=Ethernet
IPADDR=10.5.5.x (x must be unique number on your network maybe 253)
DEVICE=eth0:1
HWADDR=00:e0:4c:yy:yy:yy (mac address you can find in ifcfg-eth0)
BOOTPROTO=none
NETMASK=255.255.255.x ( maybe 255.255.255.0 or 255.255.255.128) (i checked your netmask is not correct)
ONBOOT=yes
USERCTL=no
PEERDNS=no


after that you should type

...#service network restart

I wish this info will be worked.


---------
lynOS
 
Old 07-20-2004, 04:33 AM   #28
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
i see what you are saying lynos but i think that he/we need to establish what he is trying to achive first. we still dont know how many computers there are on his "network" or what hardware there is, like a switch or something.
 
Old 07-20-2004, 04:43 AM   #29
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
gubak

Are you connecting to some ISP - ADSL /Cable or is this "OtherNetwork Internet" an Office OR School Network. Can you see this Gateway system? How do you connect to this Gateway system? Is it a single crossover cable that connects your system to the gateway OR is there a switch/hub?

Can you explain how Windows connects to this network ... have you keyed in the details statically into the Wiindows Network settings?
 
Old 07-20-2004, 04:43 AM   #30
lynos
Member
 
Registered: Mar 2004
Distribution: RedHat, Centos, Ubuntu
Posts: 52

Rep: Reputation: 15
So, he should send a diagram of his network's infrastructure. I suggested that to gubak for understanding the network.
We are imagine the network as we understood than saying something about that.


--------
lynOS
 
  


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
dhcp does not set gateway pantoniades Linux - Networking 4 02-14-2006 05:26 AM
lm10.0 gateway is set but when I reboot I have to set the gateway rharvey32 Mandriva 8 02-13-2006 01:35 PM
Gateway set up xowl Slackware 1 02-04-2005 10:20 PM
How do I set up an Internet Gateway??? Kelv1979 Linux - Networking 7 08-21-2003 03:00 AM
trying to set up a gateway annehoog Linux - Newbie 6 05-12-2003 09:54 AM

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

All times are GMT -5. The time now is 07:57 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