Bluehost.com Web Hosting $6.95

setting up router

This is a discussion on setting up router within the Linux Networking forums, part of the Linux Forums category; Hello all! I want to setup a router on a Fedora Linux machine. I have succesfully installed the two ethernet ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-03-2004
Radu Bogdan Mare
 
Posts: n/a
Default setting up router

Hello all!

I want to setup a router on a Fedora Linux machine. I have succesfully
installed the two ethernet cards. My external IP address is static. I
followed the shorewall quickstart guide instructions but my router still
does not route :-( and I dont know what is wrong or how I should go further.
The configuration that I have thought of is the following:

eth0
IP 181.196.188.248
Subnet Mask 255.255.255.0
GW 181.196.188.225

eth1
IP 10.10.10.254
Subnet Mask 255.255.255.0
GW 181.196.188.248

network computer WADDE

WADDE
IP 10.10.10.2
Subnet Mask 255.255.255.0
GW 10.10.10.254

I noticed that I do have access to the Internet as long as shorewall is not
started. Once I start it, it wont work. If I issue shorewall stop, the
external connection works again.

Here are a few outputs that could give some clues to an experienced eye:

/sbin/ip link list
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000

link/ether 00:50:8b:34:64:54 brd ff:ff:ff:ff:ff:ff

6: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000

link/ether 00:50:fc:b4:69:c7 brd ff:ff:ff:ff:ff:ff



# /sbin/ip addr show

1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000

link/ether 00:50:8b:34:64:54 brd ff:ff:ff:ff:ff:ff

inet 181.196.188.248/24 brd 181.196.188.255 scope global eth0

6: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000

link/ether 00:50:fc:b4:69:c7 brd ff:ff:ff:ff:ff:ff

inet 10.10.10.254/24 brd 10.255.255.255 scope global eth1



#/sbin/ip route show

181.196.188.0/24 dev eth0 scope link

10.10.10.0/24 dev eth1 proto kernel scope link src 10.10.10.254

169.254.0.0/16 dev eth0 scope link

127.0.0.0/8 dev lo scope link

default via 181.196.188.225 dev eth0


Any help would be appreciated,
Bogdan


Reply With Quote
  #2 (permalink)  
Old 02-03-2004
Radu Bogdan Mare
 
Posts: n/a
Default Re: setting up router


"ruud" <ruud@localhost.invalid> wrote in message
news:bvobr0$joc$1@box.nl-netwerken.com...
> Radu Bogdan Mare wrote:
>
> > Hello all!
> >
> > I want to setup a router on a Fedora Linux machine. I have succesfully
> > installed the two ethernet cards. My external IP address is static. I
> > followed the shorewall quickstart guide instructions but my router still
> > does not route :-( and I dont know what is wrong or how I should go
> > further.

>
> <snip>
> I think you forgot this:
>
> echo -n 1 > /proc/sys/net/ipv4/ip_forward
> echo -n 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp


I typed these two commands but no output was produced by either of them.


Reply With Quote
  #3 (permalink)  
Old 02-04-2004
Brian
 
Posts: n/a
Default Re: setting up router

On Tue, 03 Feb 2004 17:06:21 +0200, Radu Bogdan Mare wrote:

>
> "ruud" <ruud@localhost.invalid> wrote in message
> news:bvobr0$joc$1@box.nl-netwerken.com...
>> Radu Bogdan Mare wrote:
>>
>> > Hello all!
>> >
>> > I want to setup a router on a Fedora Linux machine. I have succesfully
>> > installed the two ethernet cards. My external IP address is static. I
>> > followed the shorewall quickstart guide instructions but my router still
>> > does not route :-( and I dont know what is wrong or how I should go
>> > further.

>>
>> <snip>
>> I think you forgot this:
>>
>> echo -n 1 > /proc/sys/net/ipv4/ip_forward
>> echo -n 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

>
> I typed these two commands but no output was produced by either of them.


And nor should it: the '>' redirects the output produced by 'echo' into
the pseudo-files.

See: man bash

B.
--
Windows: because everyone needs a good laugh.

Reply With Quote
  #4 (permalink)  
Old 02-04-2004
Radu Bogdan Mare
 
Posts: n/a
Default Re: setting up router


"Brian" <nospam@my-local.net> wrote in message
news:bvpe63$en0$1$8300dec7@news.demon.co.uk...
> On Tue, 03 Feb 2004 17:06:21 +0200, Radu Bogdan Mare wrote:
>
> >
> > "ruud" <ruud@localhost.invalid> wrote in message
> > news:bvobr0$joc$1@box.nl-netwerken.com...
> >> Radu Bogdan Mare wrote:
> >>
> >> > Hello all!
> >> >
> >> > I want to setup a router on a Fedora Linux machine. I have

succesfully
> >> > installed the two ethernet cards. My external IP address is static. I
> >> > followed the shorewall quickstart guide instructions but my router

still
> >> > does not route :-( and I dont know what is wrong or how I should go
> >> > further.
> >>
> >> <snip>
> >> I think you forgot this:
> >>
> >> echo -n 1 > /proc/sys/net/ipv4/ip_forward
> >> echo -n 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

> >
> > I typed these two commands but no output was produced by either of them.

>
> And nor should it: the '>' redirects the output produced by 'echo' into
> the pseudo-files.
>
> See: man bash


Alright, the content of both files is 1.


Reply With Quote
Reply
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:50 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0