Results 1 to 10 of 11
I've installed Kubuntu 8.10 on my PC, I am totally new with Linux operating systems.
My motherboard has two Ethernet ports eth0 and eth1, through one, I'm connected via cable ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-27-2009 #1Just Joined!
- Join Date
- Jan 2009
- Posts
- 8
Networking problem beetwine windows and kubuntu 8.10
I've installed Kubuntu 8.10 on my PC, I am totally new with Linux operating systems.
My motherboard has two Ethernet ports eth0 and eth1, through one, I'm connected via cable modem to the Internet, and I use the second port to connect directly to one windows PC with twisted-pair cable.
Internet is working nice on Kubuntu, but windows PC can't connect through its gateway wich is set to 192.168.0.1. Notification on Kubuntu PC says that the eth1 is disconnected. I tried to set up manually IP address for eth1, but that didn't work. I don't know what else to try.
So my problem is, making my second eth1 connection on Kubuntu PC active so that windows PC could connect to Internet.
Thanks in advance!!
- 01-27-2009 #2
Try a cross over cable.
- 01-27-2009 #3Just Joined!
- Join Date
- Jan 2009
- Posts
- 8
- 01-28-2009 #4
On the Kunbuntu machine run the following:
What is the ip address of the windows machine?Code:ifconfig route -n
- 01-28-2009 #5Just Joined!
- Join Date
- Jan 2009
- Posts
- 8
Well, I discovered that, Kubuntu doesn't see two separate ethernet ports, it sets them both to the same values, same IP, DNS ... When I try to set manually IP for a local network on eth1 :
IP : 192.168.0.1, SubMask: 255.255.255.0 wich was my setting on an windows earlier, before I installed Kubuntu, it reset the values, and sets the status of the connection to "disconnected" (on eth0) . It seems that, Kubuntu doesn't know how to route packets.
Is there any cure for this problem or I'll have to buy a switch, or a multi-port router?
- 01-28-2009 #6Just Joined!
- Join Date
- Jan 2009
- Posts
- 8
this is what comes up.Code:~$ ifconfig eth0 Link encap:Ethernet HWaddr 00:1e:8c:cf:80:25 inet addr:94.189.170.240 Bcast:94.189.171.255 Mask:255.255.254.0 inet6 addr: fe80::21e:8cff:fecf:8025/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:75603 errors:0 dropped:0 overruns:0 frame:0 TX packets:2169 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6346557 (6.3 MB) TX bytes:391848 (391.8 KB) Interrupt:221 Base address:0x8000 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:148 errors:0 dropped:0 overruns:0 frame:0 TX packets:148 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8832 (8.8 KB) TX bytes:8832 (8.8 KB) ~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 94.189.170.0 0.0.0.0 255.255.254.0 U 1 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 94.189.170.1 0.0.0.0 UG 0 0 0 eth0
- 01-28-2009 #7Just Joined!
- Join Date
- Jan 2009
- Posts
- 8
Windows machines IP is 192.168.0.2.
- 01-29-2009 #8
Check the network config files for eth1 and ensure that it is not set to dhcp. sound like they are both set to DHCP and thus eth1 cannot get an ip address so it downs the interface. Can you post your config files fro both eth0 and eth1?
- 01-30-2009 #9Just Joined!
- Join Date
- Jan 2009
- Posts
- 8
Is this what have you been looking for for me to find?Code:auto lo iface lo inet loopback auto eth1 iface eth1 inet static address 192.168.0.1 netmask 255.255.255.0 gateway auto eth0 iface eth0 inet dhcp
It says that eth1 is set to static IP, maybe I should set default gateway for it on the IP of eth0 that has cable modem attached on it.
- 02-09-2009 #10Just Joined!
- Join Date
- Jan 2009
- Posts
- 8
I have solved my Problem!
)))
This is the link to the solution:
Howto Share internet connection - Ubuntu Forums
The problem has been solved by sharing an internet connection in Kubuntu !
This text has been copied from the link above:
The following will explain how to share your Internet connection:
Note: Type all the following commands in a root terminal, DO NOT use sudo.
1. Start by configuring the network card that interfaces to the other computers on you network:
# ifconfig ethX ip
where ethX is the network card and ip is your desired server ip address (Usually 192.168.0.1 is used)
2. Then configure the NAT as follows:
# iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE
where ethX is the network card that the Internet is coming from
# echo 1 > /proc/sys/net/ipv4/ip_forward
3. Install dnsmasq and ipmasq using apt-get:
# apt-get install dnsmasq ipmasq
4. Restart dnsmasq:
# /etc/init.d/dnsmasq restart
5. Reconfigure ipmasq to start after networking has been started:
# dpkg-reconfigure ipmasq
6. Repeat steps 1 and 2.
7. Add the line "net.ipv4.ip_forward = 1" to /etc/sysctl.conf
# gedit /etc/sysctl.conf
8. Reboot. (Optional)
I hope this helps.
Good luck!


Reply With Quote

