LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Enabling DHCP on second LAN interface when using shorewall. (https://www.linuxquestions.org/questions/linux-networking-3/enabling-dhcp-on-second-lan-interface-when-using-shorewall-939421/)

varunb 04-12-2012 05:30 AM

Enabling DHCP on second LAN interface when using shorewall.
 
Hi,

I have installed and configured shorewall. I have two LAN interfaces, where eth1 is local network and eth0 is external network.

Code:

eth1      Link encap:Ethernet  HWaddr 00:80:48:26:40:6B 
          inet addr:192.168.15.254  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::280:48ff:fe26:406b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35123 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70505 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3313361 (3.1 Mb)  TX bytes:83711330 (79.8 Mb)
          Interrupt:16 Base address:0xe800

eth4      Link encap:Ethernet  HWaddr 00:05:5D:4B:16:A3 
          inet addr:10.10.10.91  Bcast:10.10.10.255  Mask:255.255.255.0
          inet6 addr: fe80::205:5dff:fe4b:16a3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:88243 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41005 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:87549214 (83.4 Mb)  TX bytes:4400142 (4.1 Mb)
          Interrupt:18 Base address:0xc400

All i need to know is how can i enable dhcp to eth1 interface.
IP forwarding is enabled.

if i connect eth1 interface to my laptop through cable, then i have to assign static IP in LAPTOP(i.e 192.168.15.251 and gw-192.168.15.254), then only i will be able to connect to internet.

All i need is when connected eth1 to laptop, i should get a auto IP in my laptop and get connected.

and can any one tell me is IPTABLES related to shorewall???


All times are GMT -5. The time now is 04:14 PM.