HI! I have a laptop running Ubuntu 8.04 server - command line.
This laptop has 2 network interfaces: USB and RJ45
I'm trying to share internet connection and have it work as router
It pings internet sites through USB, but unable to ping anything on LAN through RJ-45, i.e 192.168.0.1 - "Destination host unreachable"
Please look at my interface setup and tell me if there is a mistake:
I'm not talking about masquerading and ipforward- that is the next step
THANKS FOR READING !
INTERNET
CABLE MODEM
|
|
LAPTOP SERVER
auto eth2
# in the line bolow changed # in the line bolow changed 'static' to 'dhcp'
iface eth2 inet static
address 68.37.138.1
netmask 255.255.252.0
gateway 68.37.137.1
|
|
iface eth0 inet static
address 192.168.0.202
netmask 255.255.255.0
network 192.168.0.0
#TRIED these settings ,but failed:
#address 192.168.10.1
#netmask 255.255.254.0
#gateway 68.37.137.1
|
|
ROUTER
WAN
IP Addr:68.37.138.1
Subnet 255.255.252.0
Gateway 68.37.137.1
|
|
LAN
IP Addr:192.168.0.1
Subnet 255.255.255.0
DHCP Server Enabled
|
|
Computer
192.168.0.100
This laptop has 2 network interfaces: USB and RJ45
I'm trying to share internet connection and have it work as router
It pings internet sites through USB, but unable to ping anything on LAN through RJ-45, i.e 192.168.0.1 - "Destination host unreachable"
Please look at my interface setup and tell me if there is a mistake:
I'm not talking about masquerading and ipforward- that is the next step
THANKS FOR READING !
INTERNET
CABLE MODEM
|
|
LAPTOP SERVER
auto eth2
# in the line bolow changed # in the line bolow changed 'static' to 'dhcp'
iface eth2 inet static
address 68.37.138.1
netmask 255.255.252.0
gateway 68.37.137.1
|
|
iface eth0 inet static
address 192.168.0.202
netmask 255.255.255.0
network 192.168.0.0
#TRIED these settings ,but failed:
#address 192.168.10.1
#netmask 255.255.254.0
#gateway 68.37.137.1
|
|
ROUTER
WAN
IP Addr:68.37.138.1
Subnet 255.255.252.0
Gateway 68.37.137.1
|
|
LAN
IP Addr:192.168.0.1
Subnet 255.255.255.0
DHCP Server Enabled
|
|
Computer
192.168.0.100