![]() |
|
Error when trying to set static ip BT5 - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Computers (https://sinister.li/Forum-Computers) +--- Forum: Operating Systems (https://sinister.li/Forum-Operating-Systems) +--- Thread: Error when trying to set static ip BT5 (/Thread-Error-when-trying-to-set-static-ip-BT5) |
Error when trying to set static ip BT5 - akitta - 09-06-2011 When i use the command - ' ifconfig wlan0 192.168.1.90 netmask 255.255.255.0 up' to try and make my ip static, I'm losing connection to the internet i'll show you a read out from ifconfig before and after the command. BEFORE === ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx inet addr:192.168.1.67 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fx8x::xxx:5fff:xxcc:xxxx/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:63434 errors:0 dropped:0 overruns:0 frame:0 TX packets:56574 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:49026261 (49.0 MB) TX bytes:11492669 (11.4 MB) INTERNET IS WORKING FINE AT THIS POINT (Not sure why Bcast:192.168.1.255, because my router is 192.168.1.254, but there is much i'm not familiar with0 AFTER=== ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx inet addr:192.168.1.90 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fx8x::xxx:5fff:xxcc:xxxx/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:63527 errors:0 dropped:0 overruns:0 frame:0 TX packets:56585 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:49030670 (49.0 MB) TX bytes:11493382 (11.4 MB) IVE EVEN TRIED IT WITH 'ifconfig wlan0 192.168.1.90 netmask 255.255.255.0 gateway 192.168.1.254 up' gateway: Unknown host Can anyone help me and point out where i have gone wrong..? Error when trying to set static ip BT5 - akitta - 09-06-2011 When i use the command - ' ifconfig wlan0 192.168.1.90 netmask 255.255.255.0 up' to try and make my ip static, I'm losing connection to the internet i'll show you a read out from ifconfig before and after the command. BEFORE === ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx inet addr:192.168.1.67 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fx8x::xxx:5fff:xxcc:xxxx/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:63434 errors:0 dropped:0 overruns:0 frame:0 TX packets:56574 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:49026261 (49.0 MB) TX bytes:11492669 (11.4 MB) INTERNET IS WORKING FINE AT THIS POINT (Not sure why Bcast:192.168.1.255, because my router is 192.168.1.254, but there is much i'm not familiar with0 AFTER=== ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx inet addr:192.168.1.90 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fx8x::xxx:5fff:xxcc:xxxx/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:63527 errors:0 dropped:0 overruns:0 frame:0 TX packets:56585 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:49030670 (49.0 MB) TX bytes:11493382 (11.4 MB) IVE EVEN TRIED IT WITH 'ifconfig wlan0 192.168.1.90 netmask 255.255.255.0 gateway 192.168.1.254 up' gateway: Unknown host Can anyone help me and point out where i have gone wrong..? RE: Error when trying to set static ip BT5 - .LiT - 09-07-2011 You can edit the /etc/network/interfaces file. vim /etc/network/interfaces Find the line with the interface you would like to change in my case auto eth0. (You can also do it to your wireless interfaces.) Normally without any changes it will will set to get its IP automatically from DHCP and look like this: auto eth0 iface eth0 inet dhcp Now to change it so it grabs a static IP from the gateway: auto eth0 iface eth0 inet static address 192.168.1.118 netmask 255.255.255.0 gateway 192.168.1.1 Save the file and exit. Now just put the interface down then up to “refresh it†Make sure to use ifdown/up eth0 and not ifconfig eth0 down/up..... Not sure why ifconfig eth0 up/down commands dont work though :S: ifdown eth0 ifup eth0 You can also do it from the WICD GUI RE: Error when trying to set static ip BT5 - .LiT - 09-07-2011 You can edit the /etc/network/interfaces file. vim /etc/network/interfaces Find the line with the interface you would like to change in my case auto eth0. (You can also do it to your wireless interfaces.) Normally without any changes it will will set to get its IP automatically from DHCP and look like this: auto eth0 iface eth0 inet dhcp Now to change it so it grabs a static IP from the gateway: auto eth0 iface eth0 inet static address 192.168.1.118 netmask 255.255.255.0 gateway 192.168.1.1 Save the file and exit. Now just put the interface down then up to “refresh it†Make sure to use ifdown/up eth0 and not ifconfig eth0 down/up..... Not sure why ifconfig eth0 up/down commands dont work though :S: ifdown eth0 ifup eth0 You can also do it from the WICD GUI RE: Error when trying to set static ip BT5 - akitta - 09-07-2011 Hey Thanks .LIT, Thats Sorted it m8. I never even thought about using WICD GUI ...lol..! Always expecting anything to do with linux will be from command line....! |