Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  | Правила  

Компьютерный форум OSzone.net » Linux и FreeBSD » Общий по FreeBSD » не понимаю почему не работат сеть

Ответить
Настройки темы
не понимаю почему не работат сеть

Аватара для pnck

Пользователь


Сообщения: 63
Благодарности: 1

Профиль | Сайт | Отправить PM | Цитировать


у меня работала сеть и вдруг в один прекрасной момент она пересатала работать.
и в ifconfige появился lo что это за ло. Но мне кажется проблемы в нем.
сеть работат через устройство sis0 ip выдается по dhcp. я вообще ничего не менял(на скока помню) и сеть просто после очередной загрузки перестала работать.

в rc.conf отключена загрузка сети
Цитата:
> ifconfig
sis0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
ether 00:0d:87:da:13:de
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
> uname -a
FreeBSD andrey.home 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Wed Mar 1 19:51:19 KRAT 2006 root@andrey.home:/usr/src/sys/i386/compile/GENERIC i386
> cat /etc/hosts
# $FreeBSD: src/etc/hosts,v 1.16 2003/01/28 21:29:23 dbaker Exp $
#
# Host Database
#
# This file should contain the addresses and aliases for local hosts that
# share this file. Replace 'my.domain' below with the domainname of your
# machine.
#
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
#
#
#::1 localhost localhost.my.domain
127.0.0.1 andrey.home andrey
#
# Imaginary network.
#10.0.0.2 myname.my.domain myname
#10.0.0.3 myfriend.my.domain myfriend
#
# According to RFC 1918, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
# 10.0.0.0 - 10.255.255.255
# 172.16.0.0 - 172.31.255.255
# 192.168.0.0 - 192.168.255.255
#
# In case you want to be able to connect to the Internet, you need
# real official assigned numbers. Do not try to invent your own network
# numbers but instead get one from your network provider (if any) or
# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#
> cat /etc/rc.conf

# -- sysinstall generated deltas -- # Sat Jan 14 01:07:55 2006
# Created: Sat Jan 14 01:07:55 2006
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
font8x8="cp866-8x8"
keymap="ru.koi8-r"
mousechar_start="3"
moused_enable="YES"
moused_flags="5"
scrnmap="koi8-r2cp866"
usbd_enable="YES"
moused_port="/dev/psm0"
moused_type="auto"
#allscreens_flags="-m on"
hostname=andrey.home
gdm_enable="YES"
#ifconfig_sis0=dhcp
#network_interfaces=sis0
сеть не работает
убираем коментарии с последних дву строчек
перезапускамся пробуем сеть. неработат
при перезагруки вылетает мессага о том что о повторении чего либо
sis0:dad detected duplicate далее я не успел прочитать можот кто знает как поглядеть что пишется при загрузке я тогда процетирую полностью

Цитата:
> ping -c5 vpn.multi-net.ru
ping: cannot resolve vpn.multi-net.ru: Host name lookup failure
> ifconfig
sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet6 fe80::20d:87ff:feda:13de%sis0 prefixlen 64 duplicated scopeid 0x1
inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
ether 00:0d:87:da:13:de
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8008<LOOPBACK,MULTICAST> mtu 16384
> cat /etc/hosts
# $FreeBSD: src/etc/hosts,v 1.16 2003/01/28 21:29:23 dbaker Exp $
#
# Host Database
#
# This file should contain the addresses and aliases for local hosts that
# share this file. Replace 'my.domain' below with the domainname of your
# machine.
#
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
#
#
#::1 localhost localhost.my.domain
127.0.0.1 andrey.home andrey
#
# Imaginary network.
#10.0.0.2 myname.my.domain myname
#10.0.0.3 myfriend.my.domain myfriend
#
# According to RFC 1918, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
# 10.0.0.0 - 10.255.255.255
# 172.16.0.0 - 172.31.255.255
# 192.168.0.0 - 192.168.255.255
#
# In case you want to be able to connect to the Internet, you need
# real official assigned numbers. Do not try to invent your own network
# numbers but instead get one from your network provider (if any) or
# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#
> cat /etc/rc.conf

# -- sysinstall generated deltas -- # Sat Jan 14 01:07:55 2006
# Created: Sat Jan 14 01:07:55 2006
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
font8x8="cp866-8x8"
keymap="ru.koi8-r"
mousechar_start="3"
moused_enable="YES"
moused_flags="5"
scrnmap="koi8-r2cp866"
usbd_enable="YES"
moused_port="/dev/psm0"
moused_type="auto"
#allscreens_flags="-m on"
hostname=andrey.home
gdm_enable="YES"
network_interfaces=sis0
ifconfig_sis0=dhcp
>

-------
Да поможет нам F1, и сохранит нас F2!!!


Отправлено: 15:47, 01-04-2006

 

Аватара для Barracuda

Редкий гость


Сообщения: 1769
Благодарности: 16

Профиль | Сайт | Отправить PM | Цитировать


Вот вам рабочий конфиг с поддержкой авторизации MS-CHAPv2
mpd.conf
Код: Выделить весь код
default:
        load vpn


vpn:
        new -i ng0 vpn vpn
        set debug 6
        set iface idle 0
        set iface route default
        set iface addrs 10.12.1.2 10.12.1.1
        set iface enable on-demand
        set bundle enable multilink
        set bundle authname "login"
        set bundle password "password"
        set link yes acfcomp protocomp
        set link no pap chap
        set link yes chap
        set link mtu 1454
# If remote machine is NT you need this..
        set link enable no-orig-auth
        set link keep-alive 10 75
        set ipcp yes vjcomp
        set ipcp ranges 0.0.0.0/0 0.0.0.0/0
        set ccp yes mpp-e40
        set ccp yes mpp-e128
        set bundle enable crypt-reqd
        set ccp yes mpp-stateless
        open
mpd.links
Код: Выделить весь код
vpn:
        set link type pptp
        set pptp self your_host
        set pptp peer server_host
        set pptp enable originate outcall
Да, вот ещё... это конфиг с поддержкой call on demand, т.е. он инициирует соединение, когда необходима связь с внешним миром (вариант снят со шлюза).
Если этого не нужно, а нужно просто подымать соединение при старте mpd, то уберите следующее:
Код: Выделить весь код
        set iface addrs 10.12.1.2 10.12.1.1
        set iface enable on-demand

-------
Жизнь - цепь, а мелочи - в ней звенья. Нельзя звену не придавать значения.(C) 80 дней вокруг света
---
Це все, що маю я... (С) Друга ріка


Отправлено: 01:05, 21-04-2006 | #11



Для отключения данного рекламного блока вам необходимо зарегистрироваться или войти с учетной записью социальной сети.

Если же вы забыли свой пароль на форуме, то воспользуйтесь данной ссылкой для восстановления пароля.


Аватара для Belansky

Юниксоид


Сообщения: 3001
Благодарности: 45

Профиль | Отправить PM | Цитировать


pnck
Почитайте о настройке pptp в статье Алексея Федорчука. Может, чем поможет.

-------
Косово je Србиjа!


Отправлено: 11:50, 24-04-2006 | #12



Компьютерный форум OSzone.net » Linux и FreeBSD » Общий по FreeBSD » не понимаю почему не работат сеть

Участник сейчас на форуме Участник сейчас на форуме Участник вне форума Участник вне форума Автор темы Автор темы Шапка темы Сообщение прикреплено

Похожие темы
Название темы Автор Информация о форуме Ответов Последнее сообщение
Интерфейс - Перестал работат Dream и Aero Костян-Ростов Microsoft Windows Vista 1 24-04-2008 19:38
mpd - запускатся, но не работат zelo Общий по FreeBSD 2 18-07-2007 11:49
Сертификаты. Не понимаю... Alexandrovav Microsoft Windows NT/2000/2003 1 07-09-2006 12:59
не понимаю route print Farkhod Сетевые технологии 3 17-02-2004 12:21




 
Переход