Please help me edit my /etc/network/ file?
I have my file edited when I use a wired connection. I thought that part was easy. But, there seems to be way more to configuration when using wireless. I found an example and I might have found it here. I can't remember. Sorry, my mind is all screwed up right now. I cannot recall where I found the example but it was from a linux distro forum.
If you are the author or recognize the post (and author), please help!!!
Okay, here is my current 'wired' file for /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.XX
netmask 255.255.255.0
gateway 192.168.1.
I didn't include a broadcast and I don't know if I should or not... Perhaps, someone could comment on that, too?
Anyway, without further adieu...
Here is the example:
auto wlan0
iface wlan0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.0
gateway xxx.xxx.xxx.xxx
pre-up iwconfig wlan0 mode managed
pre-up ifconfig wlan0 up
pre-up iwconfig wlan0 essid "sjsjdjdjdjdjdjdjd"
pre-up iwpriv wlan0 set AuthMode=WPAPSK
pre-up iwpriv wlan0 set WPAPSK=sjsjsjsjjsjsjs
pre-up iwpriv wlan0 set EncrypType=TKIP
Can someone explain the "pre-up" lines? What is going on there? How do I find wlan? Also, what is 'iwpriv' and what is going on in the above example? I am googling but I'm still sufficiently unsure so that I don't want to edit the file until I'm understanding it better. I think I need the wireless configuration in the config file (which is the /etc/network/interfaces file, right)? I believe I know most of what is happening in terms of the router which I'm using. But, I don't quite know what is going on with the rest of the lines.
So, I'll have "two" instances of a connection, wired and wireless?
I am also using this site:
http://ubuntu-unleashed.blogspot.com...g-f5d7050.html
Right now, my wired works with my edit of the /etc/network/interfaces file which is a static configuration.
I have my file edited when I use a wired connection. I thought that part was easy. But, there seems to be way more to configuration when using wireless. I found an example and I might have found it here. I can't remember. Sorry, my mind is all screwed up right now. I cannot recall where I found the example but it was from a linux distro forum.
If you are the author or recognize the post (and author), please help!!!
Okay, here is my current 'wired' file for /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.XX
netmask 255.255.255.0
gateway 192.168.1.
I didn't include a broadcast and I don't know if I should or not... Perhaps, someone could comment on that, too?
Anyway, without further adieu...
Here is the example:
auto wlan0
iface wlan0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.0
gateway xxx.xxx.xxx.xxx
pre-up iwconfig wlan0 mode managed
pre-up ifconfig wlan0 up
pre-up iwconfig wlan0 essid "sjsjdjdjdjdjdjdjd"
pre-up iwpriv wlan0 set AuthMode=WPAPSK
pre-up iwpriv wlan0 set WPAPSK=sjsjsjsjjsjsjs
pre-up iwpriv wlan0 set EncrypType=TKIP
Can someone explain the "pre-up" lines? What is going on there? How do I find wlan? Also, what is 'iwpriv' and what is going on in the above example? I am googling but I'm still sufficiently unsure so that I don't want to edit the file until I'm understanding it better. I think I need the wireless configuration in the config file (which is the /etc/network/interfaces file, right)? I believe I know most of what is happening in terms of the router which I'm using. But, I don't quite know what is going on with the rest of the lines.
So, I'll have "two" instances of a connection, wired and wireless?
I am also using this site:
http://ubuntu-unleashed.blogspot.com...g-f5d7050.html
Right now, my wired works with my edit of the /etc/network/interfaces file which is a static configuration.
Comment