Find the answer to your Linux question:
Results 1 to 4 of 4
Hello to all the members, I am using RHEL 5 and facing problem related to 2 NIC. NIC1 is connected to the internet and used to provide the internet access ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    1

    Question 2 NIC problem - Please Help

    Hello to all the members,

    I am using RHEL 5 and facing problem related to 2 NIC.

    NIC1 is connected to the internet and used to provide the internet access to all my internal LAN systems which are connected to my second NIC2 via a hub.

    NIC1 is on DHCP and i am providing static IP address on NIC2 - 192.168.0.1

    My LAN systems are pinging to my server but not able to provide internet access to my LAN. My LAN systems are on windows XP

    Please tell me what should i do.


    NIC1 Configuration
    DHCP


    NIC2 Configuration
    IP: 192.168.0.1
    Mask: 255.255.255.0
    gateway:

    i have edited the /etc/sysctl.conf ipv4_forwarding to 1 but still the issue is there.

    Please tell me that is there anything related to iptables or any simple solution is there.

    My need is just to provide the internet access to my LAN systems via my server.

    Thanx in anticipation

  2. #2
    Just Joined!
    Join Date
    Mar 2009
    Posts
    13
    Hi,
    First and foremost what is the application providing internet to your Intranet a) NAT or b) Squid
    and in either case as you are switching between networks you need to have a router in middle
    and a linux machine can work as a router by enabling a value
    in /etc/sysctl.conf
    # Controls IP packet forwarding
    net.ipv4.ip_forward = 0 change this to 1
    and get it reflected immediately by # sysctl -p or reboot your machine.
    and i guess you have not done the these things
    Get back to me if still issue were there

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Also if you have IPTABLES up and running on the router box check your forwarding rules to ensure that it is allowing forwarding.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  4. #4
    Linux User Felarin's Avatar
    Join Date
    Mar 2007
    Location
    Brazil or Singapore
    Posts
    314

    Smile

    Quote Originally Posted by hackson View Post
    Hi,
    First and foremost what is the application providing internet to your Intranet a) NAT or b) Squid
    and in either case as you are switching between networks you need to have a router in middle
    and a linux machine can work as a router by enabling a value
    in /etc/sysctl.conf
    # Controls IP packet forwarding
    net.ipv4.ip_forward = 0 change this to 1
    and get it reflected immediately by # sysctl -p or reboot your machine.
    and i guess you have not done the these things
    Get back to me if still issue were there
    Aside from the above, you also need to tell the system where to throw the packets. It has to masquerade and you need to use iptables -t nat for this.
    "A graphical user interface is just a mask. What lies beneath is what matters."

Posting Permissions

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