After installing Ubuntu Server 14.04 LTS with UNetbootin (my image is 14.04_HdMedia_x64).
The system will boot to OS with only "lo" network interface.
To add wireless network with my iPhone hotspot wifi, here are something to do.
Since Apple WiFi always use WPA/WPA2 instead of WEP, so the iwconfig only setting doesn't work.
You have to do following:
1. ifconfig -a (To make sure you do have a wireless interface and its name - ex wlan0)
2. iwlist wlan0 scan | more (To figure out the essid you like to link exists - ex myiphone)
3. vim /etc/network/interfaces and add below content:
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid myiphone
wpa-psk myiphonepassword
4. /etc/init.d/networking restart
5. Then you should be able to see the interface detecting network and dhcp the ip address.
6. It is done!
2014年10月14日 星期二
2014年10月2日 星期四
公司網路與手機網路共用路由
新創一個Bat檔
內容編輯:
route delete 0.0.0.0 mask 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 172.20.10.1 metric 25
rem route add 0.0.0.0 mask 0.0.0.0 192.168.135.1 metric 25
route delete 10.0.0.0
route add -P 10.0.0.0 mask 255.0.0.0 10.62.12.1
pause()
其中
1. rem是標注的意思, 其後語句不執行
2. 172.20.10.1是中華電信的Gateway
3. 192.168.135.1是WiMax的Gateway
4. 10.62.12.1是公司網的Gateway
每次想要共同路由, 就執行這個批次檔即可.
想要了解自己電腦的路由狀況就在cmd中執行route print就可以列出現來
訂閱:
文章 (Atom)