Re: DHCP setup
From: W Cardwell (wcardwell_at_nc.rr.com)
Date: 07/15/03
- Next message: Dan: "Re: Postfix not opening port to outside"
- Previous message: Jimmy the Geek: "problem with Samba (and solution) rec_read bad magic 0xd9fee666"
- In reply to: jones: "Re: DHCP setup"
- Next in thread: Rich Piotrowski: "Re: DHCP setup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 15 Jul 2003 00:53:58 GMT
"jones" <jonesl@graduate.hku.hk> wrote in message
news:ac56a577.0307140941.78569d78@posting.google.com...
> Thanks for your reply.
>
> I've found that the 192.168.123.145 is actually an address provided by
> a previous hardware DHCP server (which is now removed from the
> network). Once I release and renew the IP, the ME get an address
> assigned by the Linux DHCP server immediately. The ME can now ping the
> gateway (eth0) with IP 192.168.0.1. However, the ME still cannot
> research the internet. The eth0 config is as follows:
>
> IP: 192.168.0.1
> Subnet: 255.255.255.0
> Gateway: 192.168.0.1
>
> And the config of eth1 is as follows:
>
> IP: 212.236.95.99
> Subnet:255.255.255.248
> Gateway: 212.236.95.101
>
> The DNS server option is 210.33.45.67. It is the DNS provided by the
> ISP. I choose it as our network does not have any DNS server.
>
> Would someone give me some hints to solve it? Is it related to my NIC
> settings? Should I start other services, like IP forwarding, in order
> to route the packet from the internal network to the external world?
> Is there anything to work on the Firewall settings?
>
The linux box must be told to forward packets with the command
/bin/echo "1" > /proc/sys/net/ipv4/ip_forward
People usually put this command in their firewall script. If you use RedHat,
you can use the /etc/sysctl.conf file, where you can put
"net.ipv4.ip_forward=1"
Since your Internet interface has a static IP range, you need to set up
Source Network Address Translation (SNAT) in your firewall script. See 'man
iptables' and the iptables-howto for specifics.
- Next message: Dan: "Re: Postfix not opening port to outside"
- Previous message: Jimmy the Geek: "problem with Samba (and solution) rec_read bad magic 0xd9fee666"
- In reply to: jones: "Re: DHCP setup"
- Next in thread: Rich Piotrowski: "Re: DHCP setup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|