G
G
grabbee2016-10-10 19:47:12
Computer networks
grabbee, 2016-10-10 19:47:12

How to properly set up network and wifi on ubuntu?

If you register without Wi-Fi - it works fine. But if I add WiFi

waiting for network configuration

waiting an additional 60 seconds for network configuration

It takes a long time to load, but eventually it loads. Network is working, Wi-Fi is not. When I connect the cable, I can connect to the computer via the network address 192.168.1.38 (wlan0), but if the wire is disconnected, it is no longer possible ...
# The loopback network interface
auto lo
iface lo inet loopback

auto p1p1
iface p1p1 inet static
        address 192.168.1.37
        netmask 255.255.255.0
        gateway 192.168.1.1
        dns-nameservers 8.8.8.8

auto wlan0
iface wlan0 inet  static
       address 192.168.1.38
       netmask 255.255.255.0
       gateway 192.168.1.1
       dns-nameservers 8.8.8.8

        wpa-driver wext
        wpa-ssid Silk
        wpa-ap-scan 1
        wpa-proto RSN
        wpa-pairwise CCMP
        wpa-group CCMP
        wpa-key-mgmt WPA-PSK
        wpa-psk ...key...


ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns: 0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
p1p1 Link encap:Ethernet HWaddr d0: ххххххххх
inet addr:192.168.1.37 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ххххххххххххх99/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:835 errors:0 dropped:1 overruns:0 frame:0
TX packets:1982 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:112530 (112.5 KB) TX bytes:2186088 (2.1 MB Download now)
wlan0 Link encap: the Ethernet HWaddr 74: XXXXXXXXXXXX the
inet the addr: 192.168.1.38 Bcast: 192.168.1.255 Mask: 255.255.255.0
inet6 the addr: fe80 :: hhhhhhhhhhhhhhhhhh80 / 64 the Scope: Link
the UP BROADCAST RUNNING MULTICAST the MTU: the Metric 1500: 1
RX packets:91 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16735 (16.7 KB) TX bytes:1096 (1.0 KB)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ipc_ngs, 2016-10-11
@grabbee

You have two interfaces with static addresses from the same subnet, and all packets to the local network will go through one of them, see the routing table.
Better merge p1p1 and wlan0 into bridge and give it one common address
https://help.ubuntu.com/community/NetworkConnectio...

A
Alexander Karabanov, 2016-10-11
@karabanov

There is also NetworkManager. It is pumped enough at the moment, it even knows how to VLAN out of the box. There is a graphical interface, there is a console utility for configuration. And Wi-Fi is configured in two clicks, as it should be.
Why didn't NetworkManager suit you?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question