You are not logged in.

#1 2011-06-14 19:36:30

pepeapepepe
Member
From: Buenos Aires, Argentina
Registered: 2009-05-13
Posts: 36

Quick net-tools to iproute2 HOW-TO

For further information refer to:
http://www.policyrouting.org/iproute2.doc.html

Interface up.

# ifconfig wlan0 up
sudo ip link set dev wlan0 up

Assign address.

#sudo ifconfig $1 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255 #deprecated
sudo ip -f inet addr add dev wlan0 local 192.168.0.2/24 boradcast 192.168.0.255 scope gloabal

Add default gateway.

#sudo route add default gw 192.168.0.1 #deprecated
sudo ip -f inet route add default via 192.168.0.1 dev wlan0

Last edited by pepeapepepe (2011-06-14 19:37:44)


.--.-.... --. .-.-.-..-.-..--....- .- .-...-... --..-..-... -.-.----. ..-.. ...------....-...-.-----..-- .-....---.-..- --. .-.-.-..-.-.--- .-...-... --..-..-... -.-.----. .-...- -......-...-...-..-..-

Offline

#2 2011-06-15 20:54:56

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: Quick net-tools to iproute2 HOW-TO

Thanks for this.

Offline

#3 2011-06-15 23:08:41

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Quick net-tools to iproute2 HOW-TO

Probably a good candidate for the wiki.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB