View Full Version : Is there a way to have multiple wireless IPv4 or not have the router to require one?
nickhilgupta
19-01-2013, 21:58
I have a home wireless router and I don't have to put in an ip address for my laptop to use that. but when i want to connect to cRIO i have to put in an ip address. I am tired of the constant changing. so is there a way to put in multiple addresses of maybe not have the d-link router require one?
Thanks in advance.
Mark McLeod
19-01-2013, 22:01
You could setup the DLink as a DHCP server to serve 10.46.74.xx addresses (where xx is a number greater than .12).
Lightfoot26
19-01-2013, 22:08
The reason you home doesn't require you to enter an IP address is because your router does what is called dynamic host control protocol or DHCP, this automatically assigns you an IP within a set range. The robot on the other hand, doesn't have any piece of equipment that runs this DHCP service, while you can enable it in the router, the Driver station requires a specific IP (10.te.am.5). What I do to avoid navigating through menu after menu to change my settings is write batch files that switch from DCHP to Static IP on my computer and place those as shortcuts on the desktop.
This is the .bat file I have for DHCP
@ECHO OFF
cls
ECHO setting wired adapter and DNS to DHCP
netsh interface ip set address name="Local Area Connection" dhcp
netsh interface ip set dns name="Local Area Connection" dhcp
ECHO Done! Compliments of Seth.
Pause
and here is the .bat I have for Static
@ECHO OFF
cls
ECHO Setting defualt FRC Static IP addresses:
ECHO Wired Address: 10.16.25.5
ECHO Subnet: 255.255.255.0
ECHO Gateway: 10.16.25.1
netsh int ip set address "Local Area Connection" static 10.16.25.5 255.0.0.0 10.16.25.1
ECHO Done! Compliments of Seth.
Pause
make sure to configure yours to your team number. If you need help with creating and implementing batch files just ask!!
-Seth :)
The reason you home doesn't require you to enter an IP address is because your router does what is called dynamic host control protocol or DHCP, this automatically assigns you an IP within a set range. The robot on the other hand, doesn't have any piece of equipment that runs this DHCP service, while you can enable it in the router, the Driver station requires a specific IP (10.te.am.5). What I do to avoid navigating through menu after menu to change my settings is write batch files that switch from DCHP to Static IP on my computer and place those as shortcuts on the desktop.
This is the .bat file I have for DHCP
@ECHO OFF
cls
ECHO setting wired adapter and DNS to DHCP
netsh interface ip set address name="Local Area Connection" dhcp
netsh interface ip set dns name="Local Area Connection" dhcp
ECHO Done! Compliments of Seth.
Pause
and here is the .bat I have for Static
@ECHO OFF
cls
ECHO Setting defualt FRC Static IP addresses:
ECHO Wired Address: 10.16.25.5
ECHO Subnet: 255.255.255.0
ECHO Gateway: 10.16.25.1
netsh int ip set address "Local Area Connection" static 10.16.25.5 255.0.0.0 10.16.25.1
ECHO Done! Compliments of Seth.
Pause
make sure to configure yours to your team number. If you need help with creating and implementing batch files just ask!!
-Seth :)
all that does to my computer is set the ip to static but not input any values
nickhilgupta
19-01-2013, 23:58
Hi guys, thanks for your trying to help. sadly nothing would work for me. Mark: In one day i have to use my laptop to connect to around 4 or 5 different wireless networks. Seth: I did copy paste it to a notepad and saved it with the extention .bat but it still does not do any thing :(. So i was wondering if it is something to do with the operating system i use with lab view (windows 7). If you know what i am supposed to do please post a reply back here.
Thanks
-Nick
Kevin Selavko
20-01-2013, 01:49
Does it show up as a batch file? Did you set the file type to [All Files]? And did you change the ip address to your teams ip(guessing 10.46.74.x)?
Does it show up as a batch file? Did you set the file type to [All Files]? And did you change the ip address to your teams ip(guessing 10.46.74.x)?
@ECHO OFF
cls
ECHO Setting defualt FRC Static IP addresses:
ECHO Wired Address: 10.16.84.55
ECHO Subnet: 255.255.255.0
ECHO Gateway: 10.16.84.1
netsh int ip set address "Wireless Network Connection" static 10.16.84.55 255.0.0.0 10.16.84.1
ECHO Done! Compliments of Seth.
Pause
Alan Anderson
20-01-2013, 14:20
netsh int ip set address "Wireless Network Connection" static 10.16.84.55 255.0.0.0 10.16.84.1
ECHO Done! Compliments of Seth.
"Wireless Network Connection" might not be the correct name for the wireless interface. Use the ipconfig command to see what it's called on your computer.
It also might need to be ipv4 intead of just ip.
You could format your crio to have the ip like 192.168.1.1 and then your wireless bridge to 192.168.1.2 so you wouldnt have to change your ip.
What you could do is set a static address for both home and the robot.
You can have more then one IP on an adapter.
http://i.imgur.com/q0dQV4x.png
Alan Anderson
21-01-2013, 09:28
You could format your crio to have the ip like 192.168.1.1 and then your wireless bridge to 192.168.1.2 so you wouldnt have to change your ip.
The cRIO imaging utility can only set the IP address based on team number, in the 10.te.am.2 format. I'm sure you could manage to use MAX to change that, but you'd have a bear of a time finding anyone who would be willing to support you if you did.
Your best bet is to activate DHCP on the D-Link and have it give out addresses in the appropriate range.
And please don't set multiple IP addresses on an adapter. Some of the FRC tools don't handle that well at all.
DjScribbles
21-01-2013, 09:40
In my experience, a netsh script, such as the one from Seth, requires you to run it as administrator on Vista/7. The DHCP approach would be the simplest, just be sure to setup an ip reservation for the CRIO and the camera if you have one.
Lightfoot26
21-01-2013, 13:33
In my experience, a netsh script, such as the one from Seth, requires you to run it as administrator on Vista/7. The DHCP approach would be the simplest, just be sure to setup an ip reservation for the CRIO and the camera if you have one.
Just be sure to switch back come competition season!
nickhilgupta
22-01-2013, 22:12
This is what i was looking for. Can you give me some more instructions on what to do after this? Because at home i just set it to automatic. So is there a way to select both automatic and assign one to?
nickhilgupta
22-01-2013, 22:13
What you could do is set a static address for both home and the robot.
You can have more then one IP on an adapter.
http://i.imgur.com/q0dQV4x.png
This is what i was looking for. Can you give me some more instructions on what to do after this? Because at home i just set it to automatic. So is there a way to select both automatic and assign one to?
"Wireless Network Connection" might not be the correct name for the wireless interface. Use the ipconfig command to see what it's called on your computer.
It also might need to be ipv4 intead of just ip.
Didnt work and yes its Wireless Network Connection
Also, it gives me the error "This object already exists"
Alan Anderson
23-01-2013, 23:00
Also, it gives me the error "This object already exists"
I'm not an expert on Windows networking, but I think that means the address you're trying to set is already in use on another interface.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.