Disclaimer: гve never worked with servers before, so this is new territory for я.
I have gotten my server (не GUI) running with в static IP at my home, but I am now at college trying to connect it. The college wifi network is unprotected, but существуешь one of those after-connection verification pages in the browser that verifies if the connected computer ты существуешь в mac address registered in the system. I registered the mac address when в previous ВЫ was installed.
Anyway, this is what I have for my/etc/network/interfaces file.
auto lo
iface lo inet loopback
auto wlo1
iface wlo1 inet static
address 10.36.133.145
netmask 255.255.248.0
network 10.0.0.0
broadcast 10.36.135.255
gateway 10.1.1.1
wireless-essid ISU-CARDINAL
I have made sure the wlo1 интерфейс is up with ifconfig wlo1 up, and verified its state with ip addr
.
After doing /etc/init.d/networking restart
, and making sure wlo1 is up, I am unable to ping google.com
with the output ping: unknown host google.com
. I am also unable to использовал apt-get update
without getting errors.
If it makes в difference, I do not have NetworkManager installed.
Could someone help фигурировал out what гm missing? гd be happy to provide the output of any other commands that май help diagnose the issue.
Thank you so much in advance.
Вы забыли добавлять серверы имен DNS. Я предлагаю, чтобы Вы исправили Ваш /etc/network/interfaces
к:
auto lo
iface lo inet loopback
auto wlo1
iface wlo1 inet static
address 10.36.133.145
netmask 255.255.248.0
gateway 10.1.1.1
wireless-essid ISU-CARDINAL
dns-nameservers 8.8.8.8 10.1.1.1
Перезапуск интерфейс:
sudo ifdown wlo1 && sudo ifup wlo1
Проверка:
ping -c3 10.1.1.1
, Если Вы получаете возвраты ping, Вы готовы получить доступ к странице проверки и продолжиться.
я предполагаю, что все числа выше проверяются корректные, возможно от других подключенных устройств или из колледжа.
Хорошо, Вы хотите, чтобы мы отладили Ваше соединение WiFi. Без проблем, но не ожидайте, что это будет работать правильно теперь. Беспроводные ошибки могут вползти в весь вид мест, и мы должны отбросить их.
Первый, установите bsdutils
пакет в Вашем Ubuntu. Это обеспечит script
, который необходимо будет получить экранный вывод TTY.
$ sudo -i
[sudo] password for youruser:
# script
Script started, file is typescript
# ifconfig
(some interesting output)
# route -n
(some interesting output, record the gateway corresponding to 0.0.0.0)
# cat /etc/resolv.conf
(some interesting output)
# ls -l /etc/resolconf/resolv.conf.d
(this will either give an error, 0 files, or a list of files. If you
get a list, show me their contents file by file)
# cat /etc/network/interfaces
(more)
# ls -l /etc/network/interfaces.d
(either says that no files in that directory or it enumerates them)
(in which case, I will also need their contents)
# ping -c 5 your_gateway_recorded_from_route_-n_command
# ping -c 5 gmail.com
# ^D
Script done, file is typescript
#
Длятся, каждый - Вы, нажимают control key
, и в то время как нажатие его нажимает D
ключ.
Теперь рассматривают typescript
файл и удостоверяются, что он не содержит персональных данных, затем отправляет его содержание здесь.