[Ilugc] Configuring LAN with BSNL DataOne

  • From: kapil@xxxxxxxxxxx (Kapil Hari Paranjape)
  • Date: Mon Mar 2 17:06:39 2009

Hello,

On Mon, 02 Mar 2009, Sahid Khan (?????) wrote:

I use a CentOS desktop machine with BSNL (DataOne) to access Internet.
I am trying to set up a LAN in my home so that I can access Internet
from my Laptop which runs on Ubuntu 8.10.

Your diagram arrived like this:
                    __________________
 __________________
                    |                               |
             |                               |
     ---------------|192.168.1.30            |
      |                               |
     Internet    | eth0                        |            LAN
     |                               |
                    |               192.52.1.1
 |------------------------------ | 192.52.1.2               |
                    |                               | eth1
           |                               |
                    --------------------------------
             --------------------------------
                           CentOS 5.1
             Ubuntu 8.10

You probably used tabs instead of spaces! As it turns out it may not
matter.

As you see, my CentOS machine has got two network cards: eth1 is
connected to LAN and eth0 is connected to Internet. I use PPPoE to up
the Internet. Below is the ifconfig output of the CentOS machine:

[sahid@serein ~]$ /sbin/ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1C:C0:51:E9:3B
          inet addr:192.168.1.30  Bcast:192.168.1.255  Mask:255.255.255.0

eth1      Link encap:Ethernet  HWaddr 00:21:91:7A:30:92
          inet addr:192.52.1.1  Bcast:192.52.1.255  Mask:255.255.255.0

ppp0      Link encap:Point-to-Point Protocol
          inet addr:117.194.193.143  P-t-P:117.194.192.1  Mask:255.255.255.255

This output shows that it is "ppp0" which is your WAN port. This
seems likely since PPP-over-Ethernet is the way in which most BSNL
DataOne links work.

This means that your outgoing port is ppp0 *not* eth0. 

Secondly, (but less importantly) how did you pick 192.52.x.x as your LAN
IP address? I don't think this is a good idea. What if there is a
machine on the internet with an address in this range to which you
want to connect? You should only use the "LAN only" IP addresses like
192.168.x.x for your lan. Something like 192.168.7.x/255.255.255.0
should be adequate for your LAN.

Regards,

Kapil.
--

Other related posts: