| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 95653 | 2008-12-13 11:10:00 | Disabling DHCP | Camiron (7092) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 728696 | 2008-12-16 22:50:00 | the same thing, I have to re-enter my ip settings....or I dont get the internet, I dont understand it either. It is getting really annoying having to re-enter it every time i want to get on the net....tho I fo know all the numbers really well now....lol |
Camiron (7092) | ||
| 728697 | 2008-12-17 01:44:00 | Have you tried *not* setting a Gateway on the connection that you *dont* want the internet to go out? | Chilling_Silence (9) | ||
| 728698 | 2008-12-17 02:13:00 | Sorry, I forgot that Telstra used static IP addresses. You will have to change the batch file to say "static" on the internet interface (instead of DHCP) and put your assigned address in. The other port will also be "static" with the address your brother gives you. To pick the correct interface that traffic goes out, do a "route add " command putting in the destination IP address at your brother's house. You can see all the routes by doing a " netstat -r " command. You should end up with at least something like the two lines below (plus others) 0.0.0.0 0.0.0.0 (IP addy of Telstra gateway) (IP addy of your #1 interface) (IP addy of your bro's machine) 255.255.255.0 (IP addy of your #2 interface) (IP addy of your #2 interface) |
decibel (11645) | ||
| 728699 | 2008-12-17 02:40:00 | Actually, when setting the internet port to static, don't forget to set DNS, my suggestion to add to the batch file- netsh int ip set dns internet static a.b.c.d primary netsh int ip set dns internet static 208.67.222.222 secondary where a.b.c.d is whatever is the address of the Telstra DNS server and the secondary is for OpenDNS |
decibel (11645) | ||
| 728700 | 2008-12-17 03:38:00 | ok so what i have now is: ---- netsh interface ip set address name="Internet" static 121.73.35.107 255.255.255.0 pause netsh int ip set dns internet static 203.96.152.4 primary netsh int ip set dns internet static 203.96.152.12 secondary pause netsh interface ip set dns name="Matt" static 192.168.1.110 255.255.255.0 pause exit ---- i will need to enable the "Matt" connection before i do this i will let you know..lol --------------------------------------- EDIT: ok didnt work |
Camiron (7092) | ||
| 728701 | 2008-12-17 03:51:00 | You've not set a gateway ... ? | Chilling_Silence (9) | ||
| 728702 | 2008-12-17 03:56:00 | i didnt see that...lol ive got files all over the place from different people trying to help......ill have to try again ----- so this is what it should look like? --- netsh interface ip set address name="Internet" static 121.73.35.107 255.255.255.0 121.73.35.1 pause netsh int ip set dns internet static 203.96.152.4 primary netsh int ip set dns internet static 203.96.152.12 secondary pause netsh interface ip set dns name="Matt" static 192.168.1.110 255.255.255.0 pause exit --- |
Camiron (7092) | ||
| 728703 | 2008-12-17 07:32:00 | Now what happens if you run these? don't forget you may at these stage still have problems with which port is being used for accessing whatever - see post #43 regarding adding a route but you can temporarily overcome this by pulling the plug on the port you don't want to use. | decibel (11645) | ||
| 728704 | 2008-12-17 07:37:00 | ok, i got this: -------------------- C:\>netsh interface ip set address name="Internet" static 121 . 73 . 35 . 107 255 . 255 . 255 . 0 121 . 73 . 35 . 1 The syntax supplied for this command is not valid . Check help for the correct sy ntax . Usage: set address [name=]<string> [[source=]dhcp | [source=] static [addr=]IP address [mask=]IP subnet mask] [[gateway=]<IP address>|none [gwmetric=]integer] Parameters: Tag Value name - The name of the interface . source - One of the following values: dhcp: Sets DHCP as the source for configuring IP addresses for the specific interface . static: Sets the source for configuring IP addresses to local static configuration . gateway - One of the following values: <IP address>: A specific default gateway for the static IP address you are setting . none: No default gateways are set . gwmetric - The metric for the default gateway . This field should not be set if gateway is set to 'none' . The following options are used only if source is 'static': addr - An IP address for the specified interface . mask - The subnet mask for the specified IP address . Remarks: Used to change the IP address configuration mode from either DHCP to static mode or static mode to DHCP . Adds IP addresses on an interface with static IP address or adds default gateways . Examples: set address name="Local Area Connection" source=dhcp set address local static 10 . 0 . 0 . 9 255 . 0 . 0 . 0 10 . 0 . 0 . 1 1 C:\>pause Press any key to continue . . . C:\>netsh int ip set dns internet static 203 . 96 . 152 . 4 primary Ok . C:\>netsh int ip set dns internet static 203 . 96 . 152 . 12 secondary secondary is not an acceptable value for register . C:\>pause Press any key to continue . . . C:\>netsh interface ip set dns name="Matt" static 192 . 168 . 1 . 110 255 . 255 . 255 . 0 255 . 255 . 255 . 0 is not an acceptable value for register . C:\>pause Press any key to continue . . . ------- so should my batch file be like this? -- netsh interface ip set address name="Internet" static 121 . 73 . 35 . 107 255 . 255 . 255 . 0 netsh interface ip set address name="Internet" gateway 121 . 73 . 35 . 1 pause netsh int ip set dns internet static 203 . 96 . 152 . 4 primary netsh int ip set dns internet static 203 . 96 . 152 . 12 secondary pause netsh interface ip set dns name="Matt" static 192 . 168 . 1 . 110 255 . 255 . 255 . 0 pause exit -- as apposed to this . . . . which is what i used -- netsh interface ip set address name="Internet" static 121 . 73 . 35 . 107 255 . 255 . 255 . 0 121 . 73 . 35 . 1 pause netsh int ip set dns internet static 203 . 96 . 152 . 4 primary netsh int ip set dns internet static 203 . 96 . 152 . 12 secondary pause netsh interface ip set dns name="Matt" static 192 . 168 . 1 . 110 255 . 255 . 255 . 0 pause exit ----- |
Camiron (7092) | ||
| 728705 | 2008-12-17 09:41:00 | Drop the quotes around the interface name and you don't need a mask for the dns entry. Usage: set dns [name=]<string> [source=]dhcp|static [addr=]<IP address>|none [[register=]none|primary|both] |
decibel (11645) | ||
| 1 2 3 4 5 6 7 8 9 | |||||