Mailinglist Archive: opensuse (3964 mails)

< Previous Next >
Re: [SLE] Two NICs
  • From: Don Parris <webdev@xxxxxxxxxxxxx>
  • Date: Sat, 6 Nov 2004 19:28:36 -0500
  • Message-id: <200411061928.36563.webdev@xxxxxxxxxxxxx>
On Saturday 06 November 2004 17:19, Vince Littler wrote:
> On Saturday 06 November 2004 8:11 pm, Don Parris wrote:
> > I'm trying to setup two NICs on one box, and seem to be having trouble
> > eaching the rest of the LAN using eth1. I use eth0 for the DSL
> > connection.
> >
> > ifconfig reports:
> > dsl0 Link encap:Point-to-Point Protocol
> > inet addr:192.168.99.1 P-t-P:192.168.99.99
> > Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492
> > Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> > collisions:0 txqueuelen:3
> > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
> >
> > eth0 Link encap:Ethernet HWaddr 00:0A:E6:68:3E:24
> > inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
> > inet6 addr: fe80::20a:e6ff:fe68:3e24/64 Scope:Link
> > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> > RX packets:104 errors:0 dropped:0 overruns:0 frame:0
> > TX packets:175 errors:0 dropped:0 overruns:0 carrier:0
> > collisions:0 txqueuelen:1000
> > RX bytes:34154 (33.3 Kb) TX bytes:10841 (10.5 Kb)
> > Interrupt:5 Base address:0xc400
> >
> > eth1 Link encap:Ethernet HWaddr 00:01:02:73:CA:CF
> > inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
> > inet6 addr: fe80::201:2ff:fe73:cacf/64 Scope:Link
> > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> > RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> > TX packets:12 errors:0 dropped:0 overruns:0 carrier:5
> > collisions:0 txqueuelen:1000
> > RX bytes:0 (0.0 b) TX bytes:936 (936.0 b)
> > Interrupt:3 Base address:0xc000
> >
> > ping -I 192.168.1.2 192.168.1.14 produces "host unreachable".
> >
> > I've tried 2 different NICs. I suspect the problem is not dead NICs but
> > perhaps something I need to do differently or additionally. I've setup
> > the hosts file with both NICs listed (and tried it with only eth1's
> > address listed - 192.168.1.2) I'm not quite sure what else to do.
> >
> > Thanks,
> > Don
> >
> > --
> > DC Parris GNU Evangelist
> > http://matheteuo.org/
> > http://chaddb.sourceforge.net/
> > "Free software is like God's love - you can share it with
> > anyone anytime anywhere!"
>
> Hi Don
>
> Stan Glasoe has picked up the issue about the subnets. I'll chip in with
> this:
>
> If you have 2 NICS, you either DO or DON'T want them on the same subnet
> according to what you want to do, there is no option. In your case, it
> seems that you want to use eth1 for your own LAN and eth0/dsl0 as your
> external connection, in which case [no option], eth0 and eth1 must be on
> different subnets, to provide separation of internal and external traffic.
>
> I am not familiar with how to configure the eth0/dsl0 interface, because I
> use a router, but there should be no difference between single machine use
> configuration and configuration for the single machine to act as router for
> the whole LAN. So, leave aside eth1 for the moment, just get eth0/dsl0
> working as a standalone internet setup on the one machine.
>
If the DSL were not working with eth0, you wouldn't likely be able to post to
the list until tomorrow night. :) eth0 is fine, I just need eth1 working
with the internal LAN. So I'll finish working with Stan's message and report
back in a bit. I didn't think about using different subnets.

>
> When this works, go with what Stan says about separate subnets, and work on
> eth1. The machine with the 2 interfaces is then a router, which must have
> IP forwarding turned on [YaST2 -> Network Devices -> Network Card -> Change
> [already configured devices] -> edit -> routing -> enable IP forwarding].
>
> After this, you'll need to set up your LAN clients to access the internet,
> which means pointing them at your machine as gateway or router and sorting
> out DNS.
>
Opening the LAN to internet access will definitely come a little later.
>

Don
--
DC Parris GNU Evangelist
http://matheteuo.org/
http://chaddb.sourceforge.net/
"Free software is like God's love - you can share it with
anyone anytime anywhere!"

< Previous Next >