Results 1 to 6 of 6

Thread: Home Network Help

  1. #1

    Home Network Help

    Hello All.

    I am new to this forum and am looking for some assistance.

    I am setting up a home network in the following manner:

    Cable Modem<----->(Eth0) Linux Firewall (Eth1)<----->(WAN)Wireless Router (LAN)<----->Clients

    Currently I have a WRT54G that is mimicing a modem. To that eth0 is connected and is fully operable. eth1 is connected to the D-link wireless router WAN port. A XP machine is connected to one of the D-link LAN ports.

    Here is the IP mapping

    eth0=Dynamic from WRT(currently 124.168.0.179)
    eth1=192.168.0.1/24
    WAN=192.168.0.2/24
    LAN= 192.168.1.0/24
    XP = 192.168.1.2

    Here is the route config:

    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    124.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    192.168.1.0 192.168.0.1 255.255.255.0 UG 0 0 0 eth1
    192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
    192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
    169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
    0.0.0.0 124.168.0.1 0.0.0.0 UG 0 0 0 eth0

    Here is the ifconfig on the Linux:

    eth0 Link encap:Ethernet HWaddr 00:40:CA:2A:68:7A
    inet addr:124.168.0.179 Bcast:124.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::240:caff:fe2a:687a/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:13726 errors:0 dropped:0 overruns:0 frame:0
    TX packets:8688 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:6430885 (6.1 MiB) TX bytes:1723536 (1.6 MiB)
    Interrupt:185 Base address:0x6000

    eth1 Link encap:Ethernet HWaddr 00:90:27:A8:2E:B4
    inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::290:27ff:fea8:2eb4/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:15 errors:0 dropped:0 overruns:0 frame:0
    TX packets:118 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1204 (1.1 KiB) TX bytes:18496 (18.0 KiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:1589 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1589 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:2593364 (2.4 MiB) TX bytes:2593364 (2.4 MiB)

    virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
    inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
    inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:7434 (7.2 KiB)

    The D-link config is as follows:

    WAN=192.168.0.2
    LAN= 192.168.1.0/24

    Here is the ipconfig on the XP:

    Windows IP Configuration


    Ethernet adapter Local Area Connection:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 192.168.1.2
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.1.1

    Port Forwarding enabled:

    # Controls IP packet forwarding
    net.ipv4.ip_forward = 1

    # Controls source route verification
    net.ipv4.conf.default.rp_filter = 1

    # Do not accept source routing
    net.ipv4.conf.default.accept_source_route = 0

    Currently on the Linux box I have internet connectivity and can ping eth0, eth1, and WAN.
    On the XP I can ping WAN and eth1 but have no internet connectivity of course.

    I know it is something painfully obvious but I cannot get the LAN to get to eth0 and vice versa.

    Here are the Ping results from the Linux box:

    [root@Box network-scripts]# ping 192.168.1.2
    PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.

    --- 192.168.1.2 ping statistics ---
    2 packets transmitted, 0 received, 100% packet loss, time 1000ms

    [root@Box network-scripts]# ping 192.168.0.2
    PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
    64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=2.76 ms
    64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=1.76 ms

    --- 192.168.0.2 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 999ms
    rtt min/avg/max/mdev = 1.766/2.266/2.767/0.502 ms

    [root@Box network-scripts]# ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.161 ms

    --- 192.168.0.1 ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 0.161/0.161/0.161/0.000 ms

    [root@Box network-scripts]# ping 124.168.0.179
    PING 124.168.0.179 (124.168.0.179) 56(84) bytes of data.
    64 bytes from 124.168.0.179: icmp_seq=1 ttl=64 time=0.156 ms

    --- 124.168.0.179 ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 0.156/0.156/0.156/0.000 ms


    Here are the XP ping results:

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\Documents and Settings\TJ>ping 192.168.0.1

    Pinging 192.168.0.1 with 32 bytes of data:

    Reply from 192.168.0.1: bytes=32 time=2ms TTL=63
    Reply from 192.168.0.1: bytes=32 time=1ms TTL=63
    Reply from 192.168.0.1: bytes=32 time=2ms TTL=63
    Reply from 192.168.0.1: bytes=32 time=1ms TTL=63

    Ping statistics for 192.168.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 2ms, Average = 1ms

    C:\Documents and Settings\TJ>ping 192.168.0.2

    Pinging 192.168.0.2 with 32 bytes of data:

    Reply from 192.168.0.2: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.2: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.2: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.2: bytes=32 time<1ms TTL=64

    Ping statistics for 192.168.0.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

    C:\Documents and Settings\TJ>ping 124.168.0.179

    Pinging 124.168.0.179 with 32 bytes of data:

    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.

    Ping statistics for 124.168.0.179:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

    Thanks in advance for your help.

  2. #2
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    You need to enable iptables no your linux box, and tell it to route between interface eth0 and eth1.
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  3. #3
    Does have anyone have materials or source code(C/C++) about networking such as the digital content display on networks?because I am doing pre-thesis but lack of documents in this fields.The topic about managerment of dispaly content like image,movie,flash,announcement applied for companies,schools,hopitals,transportations...
    thanks for your help
    Last edited by nguyenhuuduc; 04-09-2011 at 10:04 AM.

  4. #4
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    There are so many layers in displaying contence over network...

    What are you looking for ?
    The network layer itself (tcp/ip/sockets/etc) ?
    The container of your contence (aiff/mkv/fits/flv/etc)?
    The format you decide to use (avi/mpg/divx/xvid/etc) ?
    The client/server role (3-way handshake/caller - callee/etc) ?
    How to stream contence ?
    How to read from a stream ?
    How to decifer what you read ?
    Cyclic redundancy check ?
    How to display what you recieve ?
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  5. #5
    can you show to me the steps more clrearly
    This topic about display content like movie, immage, flash,announcement
    It's mean you can acess any where to see the content in Terminal over the internet are applied for companies,schools,hopitals,transportations...
    For example you can see the features following:
    -Updated content through the internet
    -Support for formats like WMV, JPEG, BMP
    -support frames compiled information on a display screen including a frame for Video Spot (. wmv), a photo frame (standard JPG, BMP) and a framework for promoting for scroll text texts. with many different layouts
    -Supports horizontal, vertical
    - allowed to create schedule with different content for each display screen,
    -active play contents are compiled according to schedule and automatically play when power is restored pair,
    - Automatically checks and receive commands sent from the center (server) on the ADSL / Internet.
    -Report report all activities of the player box,
    - Activities stable 24 / 7
    - update data "underground", show the content newly updated data at the same time

    If possible you can send to me the document or ebooks etc..

  6. #6
    one thing for sure, you did not define your dns in your xp box, its the reason why you cant browse the internet =)

Similar Threads

  1. help setting up home network
    By noelc in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 06-12-2009, 05:33 AM
  2. Need help w/home network
    By juanpedro in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 08-15-2008, 05:52 AM
  3. Troubleshooting home network.
    By gehang in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 12-03-2006, 06:10 PM
  4. Home Network
    By CP in forum Linux - Hardware, Networking & Security
    Replies: 7
    Last Post: 02-05-2003, 07:31 PM
  5. Network setup at home
    By bitbybit in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 06-24-2002, 02:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •