I have 11.4 running as router
eth1 → 192.168.2.2 -->connected to wireless router
eth2 → connected to dsl → broadband internet
Squid is running as proxy → all 80 port request is redirected and is running as transparent proxy
Wireless router acting as access point to 192.168.2.2
Following is the /etc/dhcpd.conf entry
option domain-name-servers 192.168.2.2;
option broadcast-address 192.168.2.255;
option routers 192.168.2.2;
option subnet-mask 255.255.255.0;
default-lease-time 14400; # 4 hours
max-lease-time 28800; # 8 hours
ddns-update-style none;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.20 192.168.2.254;
}
My problem i can connect to the internet by giving static ip
ie; - ip - 192.168.2.3
dns - 192.168.2.2
gateway - 192.168.2.2
In the above configuration everything is working perfect …im getting internet and all
But if im connecting as dhcp … then ip is alloting… i can ping to the 192.168.2.2 from clients and also im getting the apache server but NO INTERNET
babu@Node:~> cat /etc/resolv.conf
/etc/resolv.conf file autogenerated by netconfig!
Before you change this file manually, consider to define the
static DNS configuration using the following variables in the
/etc/sysconfig/network/config file:
NETCONFIG_DNS_STATIC_SEARCHLIST
NETCONFIG_DNS_STATIC_SERVERS
NETCONFIG_DNS_FORWARDER
or disable DNS configuration updates via netconfig by setting:
NETCONFIG_DNS_POLICY=’’
See also the netconfig(8) manual page and other documentation.
Note: Manual change of this file disables netconfig too, but
may get lost when this file contains comments or empty lines
only, the netconfig settings are same with settings in this
file and in case of a “netconfig update -f” call.
Please remove (at least) this line when you modify the file!
search Matrix
nameserver 192.168.2.2
Node:/home/babu # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.2 0.0.0.0 UG 0 0 0 wlan0
192.168.2.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
Node:/home/babu # ifconfig
eth0 Link encap:Ethernet HWaddr F0:BF:97:1C:A6:F6
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18
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:4888 errors:0 dropped:0 overruns:0 frame:0
TX packets:4888 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3479094 (3.3 Mb) TX bytes:3479094 (3.3 Mb)
wlan0 Link encap:Ethernet HWaddr 4C:0F:6E:FF:EE:94
inet addr:192.168.2.22 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::4e0f:6eff:feff:ee94/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35243 errors:0 dropped:0 overruns:0 frame:0
TX packets:33371 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22556931 (21.5 Mb) TX bytes:20315096 (19.3 Mb)
Clients are running suse 12.1 and 11.4
Where i am wrong … please help
Ecky
January 27, 2012, 12:37am
2
External connections on both network adapters isn’t how you go about using your machine as a router mate, one should be configured as external, this being the card you use to get your internet connection
The other card is used for internal connections, i.e it provides the routing for other machines to use your 11.4 box as a router, presumably you would do something like run a cable from the internal card to a hub or switch using it’s uplink port if it has one (any if it doesn’t, I usually use 1 for convenience), your other machines then just need to a cable from it’s NIC into the hub or switch
Be aware that you also have to turn on ip forwarding and masquerading, these can be done respectively in Yast > Network Devices > Network Settings > Routing and Yast > Security & Users > Firewall > Masquerading
For clients to use dhcp you also have to det up DHCP Server in Yast > Network Services
Hope that helps
baburajkr:
I have 11.4 running as router
eth1 –> 192.168.2.2 –>connected to wireless router
eth2 –> connected to dsl –> broadband internet
Squid is running as proxy –> all 80 port request is redirected and is running as transparent proxy
Wireless router acting as access point to 192.168.2.2
Following is the /etc/dhcpd.conf entry
option domain-name-servers 192.168.2.2;
option broadcast-address 192.168.2.255;
option routers 192.168.2.2;
option subnet-mask 255.255.255.0;
default-lease-time 14400; # 4 hours
max-lease-time 28800; # 8 hours
ddns-update-style none;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.20 192.168.2.254;
}
My problem i can connect to the internet by giving static ip
ie; - ip - 192.168.2.3
dns - 192.168.2.2
gateway - 192.168.2.2
In the above configuration everything is working perfect …im getting internet and all
But if im connecting as dhcp … then ip is alloting… i can ping to the 192.168.2.2 from clients and also im getting the apache server but NO INTERNET
babu@Node:~> cat /etc/resolv.conf
/etc/resolv.conf file autogenerated by netconfig!
Before you change this file manually, consider to define the
static DNS configuration using the following variables in the
/etc/sysconfig/network/config file:
NETCONFIG_DNS_STATIC_SEARCHLIST
NETCONFIG_DNS_STATIC_SERVERS
NETCONFIG_DNS_FORWARDER
or disable DNS configuration updates via netconfig by setting:
NETCONFIG_DNS_POLICY=‘’
See also the netconfig(8) manual page and other documentation.
Note: Manual change of this file disables netconfig too, but
may get lost when this file contains comments or empty lines
only, the netconfig settings are same with settings in this
file and in case of a “netconfig update -f” call.
Please remove (at least) this line when you modify the file!
search Matrix
nameserver 192.168.2.2
Node:/home/babu # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.2 0.0.0.0 UG 0 0 0 wlan0
192.168.2.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
Node:/home/babu # ifconfig
eth0 Link encap:Ethernet HWaddr F0:BF:97:1C:A6:F6
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18
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:4888 errors:0 dropped:0 overruns:0 frame:0
TX packets:4888 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3479094 (3.3 Mb) TX bytes:3479094 (3.3 Mb)
wlan0 Link encap:Ethernet HWaddr 4C:0F:6E:FF:EE:94
inet addr:192.168.2.22 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::4e0f:6eff:feff:ee94/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35243 errors:0 dropped:0 overruns:0 frame:0
TX packets:33371 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22556931 (21.5 Mb) TX bytes:20315096 (19.3 Mb)
Clients are running suse 12.1 and 11.4
Where i am wrong … please help
The clients are connected to the 11.4 router using wireless trough the wireless router ?
The ifconfig route and resolv.conf are from one of the clients ?
Are You using ifup or NetworkManager on the clients ?
Best regards,
Greg