LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-28-2003, 04:20 PM   #16
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232

Hmm...Maybe it would be easier to change IP of one of your machines to a different subclass? 192.168.1.x, for example. I don't know if it can give interesting info, put try to traceroute (in Windows tracert, as far as I know) 192.168.0.10 from 192.168.0.70 and post the result. Try it also the other way.
 
Old 03-28-2003, 05:37 PM   #17
darchon
Member
 
Registered: Mar 2003
Location: Storuman@Sweden
Distribution: Gentoo
Posts: 30

Original Poster
Rep: Reputation: 15
Oki.. now i have changed it a little bit.

Internet
||
Linux
|| \\
|| 192.168.1.2 <=> 192.168.1.10
||
192.168.0.3 <=> 192.168.0.70

With prev. configuration i couldnt get any jumps (tracert) now I get "tracert 192.168.0.70" to jump to 192.168.1.2 but then it times out. same other way.
Code:
Its swedish but it should be clear anyway (or?).

Spårar route till 192.168.0.70 över ett maximalt antal av 30 hopp

  1   <10 ms   <10 ms   <10 ms  FLINTIS [192.168.1.2]
  2     *        *        *     Begäran gjorde timeout.
  3     *        *        *     Begäran gjorde timeout.

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth2
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
130.239.145.0   *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         130.239.145.1   0.0.0.0         UG    0      0        0 eth0

Last edited by darchon; 03-28-2003 at 05:38 PM.
 
Old 03-28-2003, 05:58 PM   #18
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Have you tried setting the gateway to being the same as the IP of the interface it is using?
 
Old 03-28-2003, 06:13 PM   #19
darchon
Member
 
Registered: Mar 2003
Location: Storuman@Sweden
Distribution: Gentoo
Posts: 30

Original Poster
Rep: Reputation: 15
Q: which command can I use to restart eth(x)

Last edited by darchon; 03-28-2003 at 06:15 PM.
 
Old 03-28-2003, 06:24 PM   #20
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
To add a route:
1) delete an old route first "route del 192.168.1.0" etc
2) add "route add -net 192.etc netmask 255.etc gw 192.etc"
changing etc to the rest of the ip obviously

You can restart the whole network using:
/etc/init.d/network restart

or 1 card using:
ifdown ethx
ifup ethx
 
Old 03-28-2003, 06:30 PM   #21
darchon
Member
 
Registered: Mar 2003
Location: Storuman@Sweden
Distribution: Gentoo
Posts: 30

Original Poster
Rep: Reputation: 15
I tried this but no luck =(
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.10    192.168.1.2     255.255.255.255 UGH   0      0        0 eth2
192.168.0.70    192.168.0.3     255.255.255.255 UGH   0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 eth2
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
130.239.145.0   *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         130.239.145.1   0.0.0.0         UG    0      0        0 eth0

Last edited by darchon; 03-28-2003 at 06:32 PM.
 
Old 03-29-2003, 03:00 AM   #22
darchon
Member
 
Registered: Mar 2003
Location: Storuman@Sweden
Distribution: Gentoo
Posts: 30

Original Poster
Rep: Reputation: 15
Now i got it to work... it was the firewall that were blocking added
Code:
$IPTABLES -A FORWARD -i $INTIF -o $INTIF2 -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF2 -o $INTIF -j ACCEPT
 
  


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
internet connection sharing through bridge positiveinflux Linux - Networking 6 04-03-2007 11:16 PM
Sharing internet & file system between Windows98 & Redhat9 cjs_pro Linux - Networking 2 07-15-2004 07:25 AM
Internet Connection Sharing In SUSE 9.1 Personal with SIngle NIC ikm19 Linux - Networking 4 06-24-2004 11:25 AM
internet sharing pppoe using 1 nic problem bashrc2 Linux - Networking 2 02-06-2004 04:17 AM
1 nic internet and file sharing ciberrust Linux - Networking 2 12-28-2003 04:13 PM

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

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