Entries Tagged 'Networking' ↓

WPA roaming

Sometimes I go to visit my parents ( I’m a good son ), so that they have their own wireless network and I have mine. Whether you want to connect both just doing one
configuration keep an eye on the following steps:
/etc/wpa_supplicant/wpa_supplicant.conf

network={
ssid=”MyParentsNet”
key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
group=TKIP
psk=”passowrd_parents”
id_str=”work” # Tha’ts an ID.
}

network={
ssid=”Home”
key_mgmt=WPA-PSK
proto=WPA2
pairwise=TKIP
group=TKIP
psk=”password_home”
id_str=”home” # And that’s another ID
}

Adding a few lines to the next file:
/etc/network/interfaces

auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface home inet dhcp
iface work inet dhcp

It’s important to set the interface to manual, don’t forget to give an “id_str” for each network, you can add a static configuration instead of dhcp :

iface work inet static
address 10.10.20.2
gateway 10.10.20.1
netmask 255.255.255.0

If you get some problem, please take a look in /usr/share/doc/, it’s really useful because it’s always there, you do not need memorize almost anything.

Catalyst XL2900: Setting up password

If you don’t set a password for your switch, you will not be able of getting in, so in a few steps:
Take your favorite client, I normally work with minicom:

# minicom -s ( Setting up serial cable: 9600 8N1 )
Some useful commands:
– CTRL-A Q Exit minicom
– CTRL-A F Send break

myswitch> enable
myswitch#configure
myswitch(config)#line vty 0 4
myswitch(config-line)#password mypasswd
myswitch(config-line)#login
myswitch(config-line)#exit
myswitch(config)#service password-encryption
myswitch(config)#exit
myswitch#write

The last line is the most important, if you forget this line you will not be able of doing telnet. Now you can do telnet your switch.