Networking Forums

Networking Forums > Computer Networking > Linux Networking > Newbie(setting up Lan & SDSL)

Reply
Thread Tools Display Modes

Newbie(setting up Lan & SDSL)

 
 
Telstra
Guest
Posts: n/a

 
      08-04-2004, 01:43 PM
G'day all


as I am rather new to this I ask for some assistance here,


here is what's going on.

I have a Debian box 3.or2 installed with 2 network cards installed, network
card 1 hooked up to the dsl modem/router and the 2nd network card hooked to
the switch for the LAN, firstly, what do I do to get the Debain to see the
rest of the world, and how can the LAN computers share the internet through
the debain box?


here is some info regarding my server

eth0 Link encap:Ethernet HWaddr 00:02:A5:76:08:A9
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:66414 errors:0 dropped:0 overruns:0 frame:0
TX packets:59218 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:22504815 (21.4 MiB) TX bytes:20708345 (19.7 MiB)
Interrupt:5

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:463 errors:0 dropped:0 overruns:0 frame:0
TX packets:463 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:32237 (31.4 KiB) TX bytes:32237 (31.4 KiB)

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
localnet * 255.255.255.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

thanks for your time


 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      08-04-2004, 01:52 PM
On 2004-08-04, Telstra <(E-Mail Removed)> wrote:
> card 1 hooked up to the dsl modem/router and the 2nd network card hooked to
> the switch for the LAN, firstly, what do I do to get the Debain to see the
> rest of the world, and how can the LAN computers share the internet through
> the debain box?


See the DSL-HOWTO, the little bits depends on what kind of connection
you have with the rest of the world, if you use PPTP, PPOE or if your
router/modem does everything on his own.
I also suggest you to read the firewall-howto.

Davide

--
| Comparing information and knowledge is like asking whether the fatness
| of a pig is more or less green than the designated hitter rule." --
| David Guaspari
|
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      08-06-2004, 10:32 AM
On Wed, 04 Aug 2004 13:43:34 GMT, Telstra <(E-Mail Removed)> wrote:
> G'day all
>
> I have a Debian box 3.or2 installed with 2 network cards installed, network
> card 1 hooked up to the dsl modem/router and the 2nd network card hooked to
> the switch for the LAN, firstly, what do I do to get the Debain to see the
> rest of the world, and how can the LAN computers share the internet through
> the debain box?


Where we have SDSL at work, our public static IPs are passed right through
the modem/router. Although, we are using a SonicWall behind that to NAT
our LAN and VPN our LAN onto factory WAN.

But since you have a private static IP and gateway on that interface, I
assume that your modem/router is doing NAT, that you can reach it, and
that all you need to do to access the internet is put your ISP's
nameservers in /etc/resolv.conf.

Then configure your other interface for an IP on a different private
network (like 192.168.1.x/255.255.255.0), and once you get that
communicating with Linux, configure iptables to masquerade your LAN and
enable ip_forward (echo 1 > /proc/sys/net/ipv4/ip_forward). You would end
up with double NAT (the modem/router and Linux), but with no details on
your modem/router, it is most documented and should universally work.

There is another way to possibly have both interfaces of Linux work like
one subnet (but not with same netmask), using proxy arp (which I do for my
wireless). But you have to know how different netmasks work, which is not
easy to explain in a few words.

> here is some info regarding my server
>
> eth0 Link encap:Ethernet HWaddr 00:02:A5:76:08:A9
> inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:66414 errors:0 dropped:0 overruns:0 frame:0
> TX packets:59218 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:22504815 (21.4 MiB) TX bytes:20708345 (19.7 MiB)
> Interrupt:5
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:3924 Metric:1
> RX packets:463 errors:0 dropped:0 overruns:0 frame:0
> TX packets:463 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:32237 (31.4 KiB) TX bytes:32237 (31.4 KiB)
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> localnet * 255.255.255.0 U 0 0 0 eth0
> default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
>
> thanks for your time


--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie - Learning about setting up a VPN Tom Network Routers 2 06-28-2011 02:34 PM
Newbie Needs Help Setting up Shares JScottP Windows Networking 1 09-12-2007 03:09 PM
Newbie help setting up dsl on verizon Dale Linux Networking 1 09-19-2005 04:23 AM
Network Newbie - Help in setting up ylonestar Wireless Internet 3 09-17-2004 08:23 PM
newbie: setting NIC speed? Steven Wong Linux Networking 14 12-29-2003 01:40 PM



1 2 3 4 5 6 7 8 9 10 11