LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I lost my wifi (https://www.linuxquestions.org/questions/linux-newbie-8/i-lost-my-wifi-4175493756/)

Ryanms3030 02-04-2014 10:59 PM

I lost my wifi
 
So I'm still trying to figure out how to set up a virtual host on my server. I found a great whitepaper on the subject from Dell for called "KVM Virtualization in RHEL 6 Made Easy":

http://linux.dell.com/files/whitepap..._made_easy.pdf

Just what I needed! So I walked through his steps to set up bridged network and now I can't connect to wifi and that's the only network on my server. How do I get my wifi back? Here is what I did to break it:

1. Turn off NetworkManager (the network bridge does not like it) and use the „network‟ service
instead. Be sure to set NM_CONTROLLED=NO in your network controller configuration file
(presumably /etc/sysconfig/network-scripts/ifcfg-em1):
# chkconfig NetworkManager off
# chkconfig network on
# service NetworkManager stop
# service network start
2. Add to your network controller configuration file the following line:

BRIDGE=br0

(In my case, I used wlan0 which is my wifi card)

3. Create /etc/sysconfig/network-scripts/ifcfg-br0 and add:

DEVICE="br0"
# BOOTPROTO is your preference. It can be “dhcp” or “static”.
# If “static”, be sure to specify the IP address, netmask and gateway. Dell Inc.
KVM Virtualization in RHEL 6 Made Easy
7

BOOTPROTO="dhcp"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Bridge"
DELAY="0"

4. Create a FORWARD firewall rule for the bridge br0 so that VM network traffic can be forwarded
through it. This rule works for all bridge devices:

# iptables -A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
# service iptables save

5. Enable forwarding. Edit /etc/sysctl.conf:

inet.ipv4.ip_forward = 1

And read the file:

# sysctl -p /etc/sysctl.conf

6. Restart the „network‟ service so that the network bridge you just created can get an IP address:
# service network restart



Now I don't get the network connection widget at the top of my desktop anymore.


# ifconfig doesn't list the wlan0 adapter anymore. Now I just get eth0, lo and virbr0.

# service network restart fails and says:

Bringing up interface eth0:
Determining IP information for eth0... failed, no link present. Check cable?
Bringing up interface br0. Incorrect number of arguments for command.

There is not cable connected to eth0 on the computer. I strictly use the wifi. Unfortunately there is not convenient way to connect directly to the router. What do I need to do or undue to get my wifi back?

Ryanms3030 02-04-2014 11:44 PM

OK, I turned NetworkManager back on and it's back. Thank you for letting me figure it out on my own ;-)

I want to go so fast learning new tricks that I do 90% the things I do without fully understanding what I'm doing other then typing or copy pasting a command. Now I've been forced to learn about NetworkManager so that's good


All times are GMT -5. The time now is 10:57 AM.