Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | cable modem + switch dhcp problem

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Networking

cable modem + switch dhcp problem
Reply
 
Thread Tools
Old 13-06-2010, 17:21   #1
duncan1
Inactive
 
Join Date: Jun 2010
Posts: 4
duncan1 is an unknown quantity at this point
cable modem + switch dhcp problem

Hi,

I'm trying to assign the public ip to a virtual machines guest os
by using a bridge and dhcp in linux. When connected I can
see broadacst traffic on the network, but when running the dhcp
client from the guest os no reply is seen. The dhcp discover
requests can be seen on the network.

I've also tried connecting the cable modem and a laptop
using a hardware switch, but I get the same problem.
This time running dhcp client using the laptops physical interface.

If I remove the switch and plug the modem directly into the
laptap, dhcp works fine.

Is there any reason why the modem can't be bridged ?

Thanks
Duncan
duncan1 is offline   Reply With Quote
Advertisement
Old 13-06-2010, 17:25   #2
Stuart
-
 
Stuart's Avatar
 
Join Date: Jun 2003
Location: Somewhere
Services: Virgin for TV and Internet, BT for phone
Posts: 26,546
Stuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver bling
Stuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver bling
Re: cable modem + switch dhcp problem

to the forum. Are you running a DHCP server on the host machine? If you are just doing a bridge from the VM to the cable modem then that may be the problem.
Stuart is offline   Reply With Quote
Old 13-06-2010, 17:40   #3
Jon T
cf.mega poster
 
Join Date: Jun 2003
Location: Mansfield, Notts
Age: 45
Services: Virgin Media Telephone and 100Mb broadband, Sky Q
Posts: 1,994
Jon T has reached the bronze age
Jon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze age
Re: cable modem + switch dhcp problem

VM residential cable modems allocate one WAN/Public IP, they also "bond" themselves to one MAC address. Which in your case in the MAC address of the physical host machine. The only way to force a re-association to a new MAC address it to power cycle the modem during kit swaps.

Connecting your cable modem to your PC via a switch will break the MAC association, as the cable modem will see the MAC address of the switch port that's connected to your cable modem. No point doing this anyway as the cable modem will only talk to one piece of equipment anyway.

Assuming the client and guest OS's NIC's are properly bridged, I suspect your cable modem will need a reboot so that it can associate itself with the MAC of the bridge.

One extra thought: I'm not 100% sure what MAC addy your CM will try and associate to, the MAC of the bridge or the MAC of the physical interface on the host machine, can't remember if one replaces the other.
Jon T is offline   Reply With Quote
Old 13-06-2010, 18:06   #4
duncan1
Inactive
 
Join Date: Jun 2010
Posts: 4
duncan1 is an unknown quantity at this point
Re: cable modem + switch dhcp problem

Quote:
VM residential cable modems allocate one WAN/Public IP, they also "bond" themselves to one MAC address. Which in your case in the MAC address of the physical host machine. The only way to force a re-association to a new MAC address it to power cycle the modem during kit swaps.

Connecting your cable modem to your PC via a switch will break the MAC association, as the cable modem will see the MAC address of the switch port that's connected to your cable modem. No point doing this anyway as the cable modem will only talk to one piece of equipment anyway.

Assuming the client and guest OS's NIC's are properly bridged, I suspect your cable modem will need a reboot so that it can associate itself with the MAC of the bridge.

One extra thought: I'm not 100% sure what MAC addy your CM will try and associate to, the MAC of the bridge or the MAC of the physical interface on the host machine, can't remember if one replaces the other.

Ok, this might make sense now. It looks like the modem will associate
with the physical interface of the machine. If it will only accept frames
with this mac address then what I'm trying to achieve will not work
as it will see the mac of the guest os. So basically, you can't bridge the modem ?
Btw, the modem was power cycled each time it was plugged into a different
device.

Thanks
Duncan
duncan1 is offline   Reply With Quote
Old 13-06-2010, 18:18   #5
Jon T
cf.mega poster
 
Join Date: Jun 2003
Location: Mansfield, Notts
Age: 45
Services: Virgin Media Telephone and 100Mb broadband, Sky Q
Posts: 1,994
Jon T has reached the bronze age
Jon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze age
Re: cable modem + switch dhcp problem

Quote:
Originally Posted by duncan1 View Post
So basically, you can't bridge the modem ?
Duncan
No

I suppose you could change the MAC of the bridge to be the same as the physical interface, but i'm not even sure this would even work bearing in mind the implication for ARP requests, etc.
Jon T is offline   Reply With Quote
Old 13-06-2010, 19:02   #6
duncan1
Inactive
 
Join Date: Jun 2010
Posts: 4
duncan1 is an unknown quantity at this point
Re: cable modem + switch dhcp problem

Quote:
I suppose you could change the MAC of the bridge to be the same as the physical interface, but i'm not even sure this would even work bearing in mind the implication for ARP requests, etc.
Ok, there is a hack to get past this.
I let the modem associate with the machines physical nic, then take
the interface down and assign a different mac address to it. Then
start the guest os up with the mac address just removed from the physical
interface. This seems to work without any problems. The guest os now
acquires the public ip though dhcp.

Thanks
Duncan
duncan1 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:06.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum