Ubuntu wireless to wired tutorial, ubuntu

Source: Internet
Author: User

Ubuntu wireless to wired tutorial, ubuntu

I wanted to test the wired-to-Wireless switch, but the NIC does not support it, so I tested a wireless-to-wired switch test! (It's really boring, but I also want to learn about linux bridges)

 

Ca0gu0 @ ub :~ $ Sudo brctl addbr br0 # Add a bridge ca0gu0 @ ub :~ $ Brctl show # Check the bridge name bridge id STP enabled interfacesbr0 8000.000000000000 no

 

Ca0gu0 @ ub :~ $ Sudo brctl addif br0 eth0 # use the physical network card as the port of the virtual bridge ca0gu0 @ ub :~ $ Sudo brctl delif br0 eth0 # Delete the physical network card ca0gu0 @ ub :~ $ Brctl show # view bridge name bridge id STP enabled interfacesbr0 8000.00e04c0e681a no eth0

 

Ca0gu0 @ ub :~ $ Sudo ifconfig br0 192.168.20.2 up # enable the Virtual Interface ca0gu0 @ ub :~ $ Ip addr1: lo: <LOOPBACK, UP, LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00: 00: 00: 00: 00 brd 00: 00: 00: 00: 00: 00 inet 127.0.0.1/8 scope host placement forever preferred_lft foreverinet6: 1/128 scope host valid_lft forever placement forever2: eth0: <NO-CARRIER, BROADCAST, MULTICAST, UP> mtu 1500 qdisc pfifo_fast master br0 state DOWN group default qlen 1000 link/ether 00: e0: 4c: 0e: 68: 1a brd ff: ff3: wlan0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether c8: e7: d8: fd: 9c: 78 brd ff: ff: ffinet 192.168.90.102/24 brd 192.168.90.255 scope global mask forever wait foreverinet6 fe80: cae7: d8ff: fefd: 9c78/64 scope link valid_lft forever limit forever4: br0: <NO-CARRIER, BROADCAST, MULTICAST, UP> mtu 1500 qdisc noqueue state DOWN group default link/ether 00: e0: 4c: 0e: 68: 1a brd ff: ff: ffinet 192.168.20.2/24 brd 192.168.255.255 scope global br0valid_lft forever preferred_lft fore

Ca0gu0 @ ub :~ $ Sudo apt-get install isc-dhcp-server # install the dhcp service ca0gu0 @ ub :~ $ Sudo vi/etc/default/isc-dhcp-serverINTERFACES = "br0" ca0gu0 @ ub :~ $ Sudo cp/etc/dhcp/dhcpd. conf/etc/dhcp/dhcpd. conf_bkca0gu0 @ ub :~ $ Sudo vi/etc/dhcp/dhcpd. confsubnet 192.168.20.0 netmask 255.255.255.0 {range 192.168.0000100 192.168.0000200; option broadcast-address 192.168.2.255; default-lease-time 600; max-lease-time 7200;} ca0gu0 @ ub :~ $ Sudo/etc/init. d/isc-dhcp-server start * Starting isc dhcp server dhcpd [OK]

 

Ca0gu0 @ ub :~ $ Ifconfig br0 down # Stop the Virtual Interface ca0gu0 @ ub :~ $ Sudo brctl delbr br0 # Delete Virtual Interface

 

Ca0gu0 @ ub :~ $ Ifconfig br0 down # Stop the Virtual Interface ca0gu0 @ ub :~ $ Sudo brctl delbr br0 # Delete Virtual Interface

 

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.