PDA

View Full Version : DHCP + Static IP-address simultaneously?


Pertsa2000
2005-08-12, 19:16
i'm not probably the only one that needs to dhcp to use web radios etc. but because my isp gives ip addresses randomly from different subnets, traffic between the machines go to the gateway and back (my upstream is only 256k). this is why it would be great to have 2 ip addresses for the xbox. one from dhcp and one from private network (for example 192.168.*.*). both linux and windows xp are capable of this (windows only by editing registry) and i can move files between windows and linux even though the public ip addresses from dhcp are not in the same subnet, but transferring movies to xbox at 30 kb / sec... :sleep:

dependeding on how the network interface is implemented this might be really easy to do or next to impossible... ;)

Asteron
2005-08-13, 19:36
i have never heard of this feature and do not understand the problem. are you saying that your isp assigns multiple ips to the devices in your place?

usually isps give you a single ip to a cable modem or dsl which then goes to a router which assigns local ips (192.168.*.*) to other the devices behind it. the router then translates the incoming traffic from the global address to the local address based on tcp sessions or a forwarding table. i dont see how multiple ips fits into this unless your computer has multiple nics.

Pertsa2000
2005-09-02, 00:27
damn, i forgot the whole post... here's the simple version of the problem:

windows machine:

ip: xxx.xxx.237.31
mask: 255.255.252.0

xbox:

ip: xxx.xxx.242.18
mask: 255.255.255.0

even though the machines are physically connected to same switch (and so is the cable modem) the traffic goes via gateway, because the ip addresses are not in the same subnet.

i have also a linux box that isn't in the same subnet with the windows machine, but with two additional ip addresses the machines can talk to each other without going through the gateway. these two only have one network card each.

Pertsa2000
2005-09-02, 00:31
and those extra ip addresses given to both of the nics are from 196.168.0.* with mask 255.255.255.0. that's why the traffic doesn't go to the gateway. this way it is also possible to limit connections in the firewalls in both machines, when the ip address is always known beforehand.

vita10gy
2005-09-02, 01:19
i still dont get why your switch can't get the one ip from your isp and then give 192.168... or whatever numbers from there. as long as you set up the correct port forwarding or even set one of your machines as a demiliterized zone (so as far as the outside world is concerned the ip your switch has is the ip that machine has.)

i really don't know what web radio you're talking about, but i can't conceive of a web service that assigns you it's own set of ip addresses, i really don't even think that's possible, unless you are talking about some sort of vpn type thing.

vita10gy
2005-09-02, 01:20
unless of course your problem is that you have no switch/router, in which case i suggest you get one.

Pertsa2000
2005-09-02, 09:36
all my machines get own public ip addresses from the isp and that's pretty common here. i think at least most of the adsl and cable modem isps do that. those adsl modems that have integrated switch usually support nat, but i have just a simple cable modem that doesn't have anything like that. so using nat would require more hardware (a broadband router would do the trick) and it would also limit connections to irc, because only two are allowed for one ip address.

so it's still easier to change the ip address from dynamic to static and back in xbmc when local lan or internet access is needed ;)

iceman73
2005-09-02, 17:34
pertsa2000

why not just enable nat in your linux box and share its public ip with your xbox. this way you still get your iirc issue fixed for your windows and linux box and you xbox, windows and linux machine all can comunicate internally and the xbox has inet capabilities when it needs it, all while on the private net.

ice