Ubuntu Wireless to cable tutorial

Source: Internet
Author: User

Originally wanted to test the wired to wireless, but the network card does not support, so it tested a wireless cable to the test! (really boring, but also to learn about the Linux bridge knowledge)

[Email protected]:~$ sudo brctl addbr br0 #添加网桥 [email protected]:~$ brctl Show #查看网桥bridge name    Bridge ID    STP enabled    interfacesbr0    8000.000000000000    No

[Email protected]:~$ sudo brctl addif br0 eth0 #将物理网卡做为虚拟网桥的端口 [email protected]:~$ sudo brctl delif br0 eth0 #删除网桥接中的物理网卡 [email protected]:~$ brctl Show #查看bridge name    Bridge ID    STP enabled    Interfacesbr0    8000. 00e04c0e681a    No    eth0

[Email protected]:~$ sudo ifconfig br0192.168.20.2Up #开启虚拟接口 [email protected]:~$ IP Addr1: Lo: <LOOPBACK,UP,LOWER_UP> MTU65536Qdisc Noqueue State UNKNOWN GroupdefaultLink/loopbackxx:xx:xx:xx:xx:xxBrdxx:xx:xx:xx:xx:xxinet127.0.0.1/8Scope host Lovalid_lft forever Preferred_lft Foreverinet6::1/ -Scope host Valid_lft forever Preferred_lft forever2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> MTU theQdisc pfifo_fast Master br0 State down GroupdefaultQlen +Link/etherxx: e0:4c:0e: the: 1a BRD ff:ff:ff:ff:ff:ff3: Wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> MTU theQdisc MQ State up GroupdefaultQlen +Link/ether c8:e7:d8:fd:9c: +BRD ff:ff:ff:ff:ff:ffinet192.168.90.102/ -Brd192.168.90.255ScopeGlobalWlan0valid_lft Forever preferred_lft foreverinet6 fe80::cae7:d8ff:fefd:9c78/ -scope link Valid_lft forever Preferred_lft forever4: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> MTU theQdisc Noqueue State down GroupdefaultLink/etherxx: e0:4c:0e: the: 1a BRD ff:ff:ff:ff:ff:ffinet192.168.20.2/ -Brd192.168.20.255ScopeGlobalbr0valid_lft Forever Preferred_lft Fore

[Email protected]:~$ sudo apt-GetInstall isc-dhcp-Server # Install DHCP service [email protected]:~$ sudo vi/etc/default/isc-dhcp-serverinterfaces="br0"[email protected]:~$ sudo cp/etc/dhcp/dhcpd.conf/etc/dhcp/Dhcpd.conf_bk[email protected]:~$ sudo vi/etc/dhcp/dhcpd.confsubnet192.168.20.0Netmask255.255.255.0{Range192.168.20.100 192.168.20.200; option broadcast-address192.168.2.255;default-lease-time -; Max-lease-time7200;} [Email protected]:~$ sudo/etc/init.d/isc-dhcp-Server Start* Starting ISC DHCP server dhcpd [OK]

[Email protected]:~$ ifconfig br0 down #停止虚拟接口 [email protected]:~$ sudo brctl delbr br0    #删除虚拟接口

[Email protected]:~$ ifconfig br0 down #停止虚拟接口 [email protected]:~$ sudo brctl delbr br0    #删除虚拟接口

Ubuntu Wireless to cable tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.