View previous topic :: View next topic |
Author |
Message |
niedzwiedz Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/58436125545ae52e921409.jpg)
Joined: 05 Jun 2006 Posts: 93 Location: BP
|
Posted: Wed Oct 11, 2006 11:05 pm Post subject: [solved]network doesn't work after changing MAC address |
|
|
HI!
I'm spending some time at my friend's house and i wan't to connect my gentoo to the net but even if change my mac to be exactly the same as his it's not working. I've installed macchanger and set the /etc/conf.d/net properly, accordlingly to the example file.
Code: |
eth0_mac="XX:XX:XX:XX:XX:XX"
|
I've also tried
Code: |
ifconfig eth0 down
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
ifconfig eth0 up
| and then runnung dhcp but i still get connection timeout error _________________ Blogoslawieni ci ktorzy nie majac nic do powiedzenia nie ubieraja tego faktu w slowa.
www.howstuffworks.com
Last edited by niedzwiedz on Wed Oct 18, 2006 3:59 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hagar Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Feb 2003 Posts: 445
|
Posted: Wed Oct 11, 2006 11:12 pm Post subject: |
|
|
Does he need to specify a hostname to the dhcp server?
I've also heard of ISP's that limit the number of requests a dhcp server is allowed to handle from each account... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
niedzwiedz Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/58436125545ae52e921409.jpg)
Joined: 05 Jun 2006 Posts: 93 Location: BP
|
Posted: Wed Oct 11, 2006 11:23 pm Post subject: |
|
|
O don't know what you mean by the limit, let's just say that network is working fine under windows(after changin mac address), i don't know if it requires specified domain name, how can i check this ,and if is needed, set it?? _________________ Blogoslawieni ci ktorzy nie majac nic do powiedzenia nie ubieraja tego faktu w slowa.
www.howstuffworks.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hagar Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Feb 2003 Posts: 445
|
Posted: Wed Oct 11, 2006 11:43 pm Post subject: |
|
|
I'm guessing your friend would know if he needs to supply a hostname to connect. (under windows it's the name of the computer)
But if it's working on windows on the same machine I guess that's not it, and then it's also unlikely the ISP limits dhcp requests.
Just try to think of differences between the windows and linux situation (as far as network config goes anyway ) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
niedzwiedz Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/58436125545ae52e921409.jpg)
Joined: 05 Jun 2006 Posts: 93 Location: BP
|
Posted: Thu Oct 12, 2006 12:13 am Post subject: |
|
|
well, network connection under windows is set to listen to dhcp server, same as linux one, what about dns servers in linux, maybe if i configure it by myself it would help?? how cqn i do it?maybe wins server??? _________________ Blogoslawieni ci ktorzy nie majac nic do powiedzenia nie ubieraja tego faktu w slowa.
www.howstuffworks.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hagar Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Feb 2003 Posts: 445
|
Posted: Thu Oct 12, 2006 1:11 am Post subject: |
|
|
dns servers are set in /etc/resolv.conf
Each nameserver line is a dns server
wins servers are used to resolve windows netbios names
Both dns and wins servers are not relevant for dhcp clients which don't use hostnames.
Can you get a connection by using a static IP ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
niedzwiedz Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/58436125545ae52e921409.jpg)
Joined: 05 Jun 2006 Posts: 93 Location: BP
|
Posted: Thu Oct 12, 2006 1:17 am Post subject: |
|
|
Quote: | Can you get a connection by using a static IP ? |
i'll try... _________________ Blogoslawieni ci ktorzy nie majac nic do powiedzenia nie ubieraja tego faktu w slowa.
www.howstuffworks.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
niedzwiedz Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/58436125545ae52e921409.jpg)
Joined: 05 Jun 2006 Posts: 93 Location: BP
|
Posted: Thu Oct 12, 2006 6:58 pm Post subject: |
|
|
OK WTH is going on??
I read net.example and assign IP and netmask in net file but it's not working:( strange thing but it's the same with live cd... _________________ Blogoslawieni ci ktorzy nie majac nic do powiedzenia nie ubieraja tego faktu w slowa.
www.howstuffworks.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
niedzwiedz Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/58436125545ae52e921409.jpg)
Joined: 05 Jun 2006 Posts: 93 Location: BP
|
Posted: Sun Oct 15, 2006 9:20 am Post subject: |
|
|
ok, that's funny, if i set network connection in windows to static using ip and subnet from dhcp the network works fine, it's not being blocked mu different mac address, how should my /etc/conf.d/net files look if my ip is 111.111.111.111 subnet: 255.255.255.0 default gatewway 111.111.111.1 and DNS is same as default gateway, i know it doesn't matter but WINS is 111.111.23.23??? i know this post looks a bit strange:D _________________ Blogoslawieni ci ktorzy nie majac nic do powiedzenia nie ubieraja tego faktu w slowa.
www.howstuffworks.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hagar Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Feb 2003 Posts: 445
|
Posted: Sun Oct 15, 2006 12:12 pm Post subject: |
|
|
Code: | config_eth0=( "111.111.111.111 netmask 255.255.255.0" )
route_eth0=( "default via 111.111.111.1" )
dns_servers_eth0=( "111.111.111.1" ) |
Something like that, see /etc/conf.d/net.example |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54821 Location: 56N 3W
|
Posted: Sun Oct 15, 2006 12:29 pm Post subject: |
|
|
niedzwiedz,
If the ISP allocates you a single IP using DHCP you must not attempt to use a static IP on the internet.
Hopefully it just won't work but you are likely to choose an IP thats in use somewhere else. If your ISP spots that you account will be suspended.
The problem with swapping computers, or dual booting even is that DHCP assigned setups have a defined lifetime (the lease). When you shutdown and restart within the period of the lease, you are expected to reuse the old details without renegiotiating with the DHCP server.
To do a clean swap, you need to surrender the DHCP lease at shutdown. Linux can do that - read but I have no idea how to make Windows surrender its DHCP lease.
This ensures that the server knows you don't have a valid setup and is prepared to negiotiate with you.
Lease times are set in the server and can usefully vary from about 10 minutes to weeks. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
niedzwiedz Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/58436125545ae52e921409.jpg)
Joined: 05 Jun 2006 Posts: 93 Location: BP
|
Posted: Wed Oct 18, 2006 3:59 pm Post subject: |
|
|
ok i solved it:D
it was all about having Code: | route_eth0=( "default via 111.111.111.1" ) |
i changed it to
routes_eth0=( "default via 111.111.111.1" ) and now it's working _________________ Blogoslawieni ci ktorzy nie majac nic do powiedzenia nie ubieraja tego faktu w slowa.
www.howstuffworks.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hagar Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Feb 2003 Posts: 445
|
Posted: Wed Oct 18, 2006 9:36 pm Post subject: |
|
|
Oh sorry about that ![Embarassed :oops:](images/smiles/icon_redface.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|