Сеть (Как настроить сеть?)

Для новичков как вообще в Linux, так и в конкретной теме, к которой относится вопрос.

Модератор: Bizdelnick

Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

Kluivert писал(а):
23.09.2005 18:30
/lib/modules/2.4.26-std-up-alt6/kernel/drivers/net/8139too.o

В /etc/modules.conf (возможно conf.modules) есть такая строчка?
alias eth0 8139too
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

Да есть
# Local configuration goes here.
# To inspect package defined part, see also /etc/modutils.d/

alias eth0 8139too
above snd-emu10k1 snd-pcm-oss
alias sound-slot-0 snd-emu10k1
pre-install pcmcia_core CARDMGR_OPTS=-f /etc/rc.d/init.d/pcmcia start
above snd-pcm-oss snd-mixer-oss
probeall scsi_hostadapter ide-scsi
options ide-cd ignore="hdc"
alias char-major-62 lt_serial
alias usb-interface usb-uhci


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

Kluivert писал(а):
23.09.2005 18:44
Да есть
# Local configuration goes here.
# To inspect package defined part, see also /etc/modutils.d/

alias eth0 8139too
above snd-emu10k1 snd-pcm-oss
alias sound-slot-0 snd-emu10k1
pre-install pcmcia_core CARDMGR_OPTS=-f /etc/rc.d/init.d/pcmcia start
above snd-pcm-oss snd-mixer-oss
probeall scsi_hostadapter ide-scsi
options ide-cd ignore="hdc"
alias char-major-62 lt_serial
alias usb-interface usb-uhci


Значит при установке он его подхватил.

Тогда посмотри такую команду:
ps ax | grep eth0
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

5148 pts/4 S 0:00 grep eth0


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

Kluivert писал(а):
23.09.2005 18:53
5148 pts/4 S 0:00 grep eth0


Запусти и покажи вывод:
service network restart

Если нет команды service, запусти:
/etc/init.d/network restart
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

Только я не понял как из другой консоли сохранить вывод, то есть что там написало, пишу от руки что выдало.
Determining IP information to eth0 via dhcpcd... filed с верху всё нормально то есть done


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

Kluivert писал(а):
23.09.2005 19:08
Только я не понял как из другой консоли сохранить вывод, то есть что там написало, пишу от руки что выдало.
Determining IP information to eth0 via dhcpcd... filed с верху всё нормально то есть done


Покажи:
ps ax | grep dhcp
и
dhcpcd -d eth0

Kluivert писал(а):
23.09.2005 19:08
Только я не понял как из другой консоли сохранить вывод, то есть что там написало, пишу от руки что выдало.

Выделяешь мышкой, переходишь куда надо вставить, нажимаешь среднюю кнопку (колесо).

Либо перенаправление вывода: "команда" > "файл"
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

5383 pts/4 S 0:00 grep dhcp
и
мак адресс=00:40:f4:5a:06:c2


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

Ну чего? настроил?

Если нет, попробуй так:

Переименнуй файл:
/etc/rc.d/rc5.d/@K65dhcpd -> @S65dhcpd (К меняется на S, цыфры могут быть другими)
А заодно и этот:
/etc/rc.d/rc3.d/@K65dhcpd -> @S65dhcpd (Другой каталог rc3.d)

Посмотри, что у тебя в файле /etc/sysconfig/network-scripts/ifcfg-eth0 написано примерно так:
DEVICE=eth0
BOOTPROTO=dhcp
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes

В файле /etc/sysconfig/network:
NETWORKING=yes
FORWARD_IPV4=false
DHCP_HOSTNAME=hostname
HOSTNAME=hostname
DOMAINNAME=localdomain

После чего просто перезагрузись.
Или так:
/etc/init.d/dhcpd start
/etc/init.d/network restart

Смотрим ifconfig - должен появиться eth0.
Проверяем: ping 127.0.0.1


ЗЫ Кстати, чего ты мне парил, что у тебя не работает dmesg? Специально проверил на альтовой машине.
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

Переименнуй файл:
/etc/rc.d/rc5.d/@K65dhcpd -> @S65dhcpd (К меняется на S, цыфры могут быть другими)
А заодно и этот:
/etc/rc.d/rc3.d/@K65dhcpd -> @S65dhcpd (Другой каталог rc3.d)

У меня такого нету, то есть нету таких файлов 65dhcpd
А команда dmesg заработала.


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

Kluivert писал(а):
24.09.2005 00:33
Переименнуй файл:
/etc/rc.d/rc5.d/@K65dhcpd -> @S65dhcpd (К меняется на S, цыфры могут быть другими)
А заодно и этот:
/etc/rc.d/rc3.d/@K65dhcpd -> @S65dhcpd (Другой каталог rc3.d)

У меня такого нету, то есть нету таких файлов 65dhcpd
А команда dmesg заработала.


Рутом набери: dhcp и нажми два раза <Tab>.
Что есть?

Да, и покажи все-таки: dmesg | grep eth
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

dhcp и нажми два раза <Tab> выдал вроде пакеты которые установлены
dmesg выдал.
Linux version 2.4.26-std-up-alt6 (builder@mash.office.altlinux.ru) (gcc version 2.96 20000731 (ALT Linux, build 2.96-alt6)) #1 Tue Aug 3 21:45:23 MSD 2004
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001ffeb000 (usable)
BIOS-e820: 000000001ffeb000 - 000000001ffef000 (ACPI data)
BIOS-e820: 000000001ffef000 - 000000001ffff000 (reserved)
BIOS-e820: 000000001ffff000 - 0000000020000000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
511MB LOWMEM available.
On node 0 totalpages: 131051
zone(0): 4096 pages.
zone(1): 126955 pages.
zone(2): 0 pages.
DMI 2.3 present.
44 structures occupying 1273 bytes.
DMI table at 0x000F2B40.
BIOS Vendor: Award Software, Inc.
BIOS Version: ASUS TUSL2-C ACPI BIOS Revision 1012
BIOS Release: 05/10/2002
System Vendor: System Manufacturer
Product Name: System Name
Version: System Version
Serial Number: SYS-1234567890
Board Vendor: ASUSTeK Computer INC.
Board Name: TUSL2-C
Board Version: REV 1.xx
ACPI: RSDP (v000 ASUS ) @ 0x000f7b40
ACPI: RSDT (v001 ASUS TUSL2-C 0x30303031 MSFT 0x31313031) @ 0x1ffeb000
ACPI: FADT (v001 ASUS TUSL2-C 0x30303031 MSFT 0x31313031) @ 0x1ffeb100
ACPI: BOOT (v001 ASUS TUSL2-C 0x30303031 MSFT 0x31313031) @ 0x1ffeb040
ACPI: DSDT (v001 ASUS TUSL2-C 0x00001000 MSFT 0x0100000b) @ 0x00000000
Kernel command line: auto BOOT_IMAGE=linux-up ro root=341
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
Detected 1534.063 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 3060.53 BogoMIPS
Memory: 515300k/524204k available (1235k kernel code, 8516k reserved, 508k data, 136k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383fbff 00000000 00000000 00000000
CPU: Common caps: 0383fbff 00000000 00000000 00000000
CPU: Intel® Celeron&#153; CPU 1300MHz stepping 04
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1534.0276 MHz.
..... host bus clock speed is 118.0020 MHz.
cpu: 0, clocks: 1180020, slice: 590010
CPU0<T0:1180016,T1:590000,D:6,S:590010,C:1180020>
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
ACPI: Subsystem revision 20040326
PCI: PCI BIOS revision 2.10 entry at 0xf0e30, last bus=2
PCI: Using configuration type 1
Looking for DSDT in initrd ... not found!
ACPI: IRQ9 SCI: Level Trigger.
ACPI-1132: *** Error: Method execution failed [\SPRW] (Node c161b220), AE_AML_NO_RETURN_VALUE
ACPI-1132: *** Error: Method execution failed [\_SB_.PCI0._PRW] (Node c16165a0), AE_AML_NO_RETURN_VALUE
ACPI-0153: *** Error: Method execution failed [\_SB_.PCI0._PRW] (Node c16165a0), AE_AML_NO_RETURN_VALUE
ACPI-0164: *** Error: No object was returned from [\_SB_.PCI0.PX40.UAR2._STA] (Node c1618aa0), AE_NOT_EXIST
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: System [ACPI] (supports S0 S1 S4 S5)
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
Transparent bridge - Intel Corp. 82801BA/CA/DB/EB PCI Bridge
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI2._PRT]
PCI: Probing PCI hardware
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 9
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 9
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKF] enabled at IRQ 10
PCI: Using ACPI for IRQ routing
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
kinoded started
VFS: Disk quotas vdquot_6.5.1
vesafb: framebuffer at 0xf0000000, mapped to 0xe080d000, size 3072k
vesafb: mode is 1024x768x16, linelength=2048, pages=0
vesafb: protected mode interface info at c000:c310
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
Looking for splash picture.... found (1024x768, 68332 bytes, v2).
Console: switching to colour frame buffer device 106x34
fb0: VESA VGA frame buffer device
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
NET4: Frame Diverter 0.46
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH2: IDE controller at PCI slot 00:1f.1
ICH2: chipset revision 17
ICH2: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xa800-0xa807, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xa808-0xa80f, BIOS settings: hdc:DMA, hdd:pio
hda: ST3120026A, ATA DISK drive
hdb: ST340016A, ATA DISK drive
blk: queue c03039e0, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c0303b1c, I/O limit 4095Mb (mask 0xffffffff)
hdc: HL-DT-ST RW/DVD GCC-4521B, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
hdb: attached ide-disk driver.
hdb: host protected area => 1
hdb: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63, UDMA(100)
Partition check:
hda: hda1 hda2 < hda5 hda6 >
hdb: hdb1 hdb2 < hdb5 hdb6 >
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 166k freed
VFS: Mounted root (romfs filesystem) readonly.
Journalled Block Device driver loaded
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Trying to move old root to /initrd ... failed
Unmounting old root
Trying to free ramdisk memory ... okay
Freeing unused kernel memory: 136k freed
Executing init=/sbin/init
Adding Swap: 1023584k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,65), internal journal
Real Time Clock Driver v1.10f
SCSI subsystem driver Revision: 1.00
hdc: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: HL-DT-ST Model: RW/DVD GCC-4521B Rev: 1.00
Type: CD-ROM ANSI SCSI revision: 02
Linux agpgart interface v0.99 © Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: agpgart: Detected an Intel i815, but could not find the secondary device. Assuming a non-integrated video card.
agpgart: Detected Intel i815 chipset
agpgart: AGP aperture is 64M @ 0xf8000000
ACPI: Power Button (FF) [PWRF]
ACPI: Processor [CPU0] (supports C1)
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,70), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
subfs: subfs-2.4 version 0.9.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 21:58:18 Aug 3 2004
usb-uhci.c: High bandwidth mode enabled
PCI: Setting latency timer of device 00:1f.2 to 64
usb-uhci.c: USB UHCI at I/O 0xa400, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Setting latency timer of device 00:1f.4 to 64
usb-uhci.c: USB UHCI at I/O 0xa000, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: USB disconnect on device 00:1f.2-0 address 1
hub.c: usb_hub_port_status (1) failed (err = -19)
hub.c: connect-debounce failed, port 1 disabled
hub.c: cannot disable port 1 of hub 1 (err = -19)
hub.c: usb_hub_port_status (1) failed (err = -19)
hub.c: get_hub_status failed
usb.c: USB bus 1 deregistered
usb.c: USB disconnect on device 00:1f.4-0 address 1
usb.c: USB bus 2 deregistered
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
inserting floppy driver for 2.4.26-std-up-alt6
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 0x/0x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
parport0: irq 7 detected
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
8139too Fast Ethernet driver 0.9.26
PCI: Enabling device 02:0c.0 (0004 -> 0007)
divert: allocating divert_blk for eth0
eth0: RealTek RTL8139 at 0xe0c39000, 00:40:f4:5a:06:c2, IRQ 11
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
divert: freeing divert_blk for eth0
8139too Fast Ethernet driver 0.9.26
divert: allocating divert_blk for eth0
eth0: RealTek RTL8139 at 0xe0c39000, 00:40:f4:5a:06:c2, IRQ 11
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
PCI: Enabling device 02:0b.0 (0004 -> 0005)
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 21:58:18 Aug 3 2004
usb-uhci.c: High bandwidth mode enabled
PCI: Setting latency timer of device 00:1f.2 to 64
usb-uhci.c: USB UHCI at I/O 0xa400, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Setting latency timer of device 00:1f.4 to 64
usb-uhci.c: USB UHCI at I/O 0xa000, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
hub.c: new USB device 00:1f.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x458/0x2e) is not claimed by any active driver.
usb.c: registered new driver hiddev
usb.c: registered new driver hid
input: USB HID v1.10 Mouse [KYE NetScroll+ Traveler] on usb1:2.0
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-6111 Tue Jul 27 07:55:38 PDT 2004
slmdm: version 2.7.10 Feb 4 2003 15:18:20 (Smart Link Ltd.).
slmdm: country set is 0xb5 (USA).
Smart Link AMRMO modem.
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 0 changed to on
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 1 changed to on
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 2 changed to on
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 3 changed to on
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 4 changed to on
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 5 changed to on
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 6 changed to on
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 7 changed to on
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 8 changed to on
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 9 changed to on
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 10 changed to on
Looking for splash picture.... found (1024x768, 13684 bytes, v2).
Splash status on console 11 changed to on
Loading Lucent Modem Controller driver version 8.26
Detected Parameters Irq=10 BaseAddress=0xb400 ComAddress=0xb800
Lucent Modem Interface driver version 8.26 (2002-11-04) with SHARE_IRQ enabled
ttyLT00 at 0xb400 (irq = 10) is a Lucent Modem
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
divert: not allocating divert_blk for non-ethernet device ppp0
PPP BSD Compression module registered
PPP Deflate Compression module registered
spurious 8259A interrupt: IRQ7.
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

Kluivert писал(а):
24.09.2005 14:17
dhcp и нажми два раза <Tab> выдал вроде пакеты которые установлены
dmesg выдал.
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1


Ты, наверно, издеваешься?

Я тебя прошу выполнить команду "dmesg | grep eth", ты выполняешь "dmesg".
Мне этот мусор нафиг не нужен.

ЧТО ТЕБЕ ВЫДАЛ dhcp<Tab>???????
Я НЕ ТЕЛЕПАТ!

И ПОКАЖИ вывод такой команды:
ls /etc/rc.d/rc5.d/
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

ls /etc/rc.d/rc5.d/ выдал
K10acpid S25netfs S40crond S64power S98splash
K65apmd S30sound S41anacron S80postfix S99drakxtools_http
S04nvidia_glx S30syslogd S44xfs S85httpd2 S99local
S05kudzu S31klogd S45dm S90kheaders
S10network S32hotplug S48autofs S90slmodemd
S13portmap S35keytable S54sshd S91smb
S15random S37gpm S56rawdevices S95captive

dmesg l grep eth выдал
Usage: dmesg [-c] [-n level] [-s bufsize]

а dhcp<Tab> много чего выдал, писать не стал, что имено там нужно увидеть? а то скопировать не получилось


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

Kluivert писал(а):
24.09.2005 17:50
dmesg l grep eth выдал
Usage: dmesg [-c] [-n level] [-s bufsize]

а dhcp<Tab> много чего выдал, писать не стал, что имено там нужно увидеть? а то скопировать не получилось

dmesg l grep eth
Млять,^ это не L, это черта вертекальная!!!

А "dhcp" надо было набрать "dhcp" и нажать кнопку табуляции пару раз! Либо он покажит команды, которые начинаются на dhcp, либо ничего!

Вообщем так, набирай: apt-get install dhcpcd
Если не установиться, то покажи что пишет.
Если пакет установится, то:
ls /etc/rc.d/rc5.d/ | grep dhcp
Если будет файл @K65dhcpd, то переименнуй его:
/etc/rc.d/rc5.d/@K65dhcpd -> @S65dhcpd (К меняется на S, цыфры могут быть другими)
А заодно и этот:
/etc/rc.d/rc3.d/@K65dhcpd -> @S65dhcpd (Другой каталог rc3.d)

Если все нормально прошло, то:
service dhcpcd start
service network restart
ping www.yandex.ru
Результат в студию.

Что не понятно лучше спроси. Из тебя все выжимать приходится.
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

Вобщем apt-get install dhcpcd написал, что всё установлену уже.
ls /etc/rc.d/rc5.d/ | grep dhcp написал, что нету файла в деректории.
Не появились файлы=( (Если будет файл @K65dhcpd, то переименнуй его:
/etc/rc.d/rc5.d/@K65dhcpd -> @S65dhcpd (К меняется на S, цыфры могут быть другими)
А заодно и этот:
/etc/rc.d/rc3.d/@K65dhcpd -> @S65dhcpd (Другой каталог rc3.d))


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

Тогда: apt-get install dhcp-client

И повтори.
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

Установилось 2 пакето, но тех файлов всё равно нету


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

Kluivert писал(а):
24.09.2005 19:35
Установилось 2 пакето, но тех файлов всё равно нету

dhcp<Tab 2 раза> Что есть?
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

когда просто в консоли ввожу, то нечего нету и под рутом тоже, а когда в консоле alt+ctrl+f1 то появляются какие то записи, вроде покету, но их много там, а скопировать не знаю как. и не 2 раза а на 3 раз, с первая к dhcp прибавляется cd потом звук пкнет, а уж потом всё остальное


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

:D
Короче. Создаем ссылки на файл.
Пиши от рута:
ln -s /etc/init.d/dhcpd /etc/rc.d/rc5.d/S65dhcpd
ln -s /etc/init.d/dhcpd /etc/rc.d/rc3.d/S65dhcpd
Если ничего не выдал, значит гуд!

Убедимся что ссылка на файл создана:
ls /etc/rc.d/rc5.d/ | grep dhcp

Если появились то так или просто перезагрузись:
service dhcpcd start
service network restart

Далее, проверяем:
ping www.yandex.ru

Результат в студию.
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

ln -s /etc/init.d/dhcpd /etc/rc.d/rc5.d/S65dhcpd
ln -s /etc/init.d/dhcpd /etc/rc.d/rc3.d/S65dhcpd
Прошло удачно
Файлы появились!
service dhcpcd start
service network restart Сделал но eth0 fauld
ping www.yandex.ru пингуется.
PING www.yandex.ru (213.180.204.11) 56(84) bytes of data.
64 bytes from yandex.ru (213.180.204.11): icmp_seq=1 ttl=52 time=187 ms
64 bytes from yandex.ru (213.180.204.11): icmp_seq=2 ttl=52 time=278 ms
64 bytes from yandex.ru (213.180.204.11): icmp_seq=3 ttl=52 time=188 ms
64 bytes from yandex.ru (213.180.204.11): icmp_seq=4 ttl=52 time=178 ms
64 bytes from yandex.ru (213.180.204.11): icmp_seq=5 ttl=52 time=178 ms
64 bytes from yandex.ru (213.180.204.11): icmp_seq=6 ttl=52 time=188 ms
64 bytes from yandex.ru (213.180.204.11): icmp_seq=7 ttl=52 time=188 ms
64 bytes from yandex.ru (213.180.204.11): icmp_seq=8 ttl=52 time=187 ms
64 bytes from yandex.ru (213.180.204.11): icmp_seq=9 ttl=52 time=187 ms
64 bytes from yandex.ru (213.180.204.11): icmp_seq=10 ttl=52 time=188 ms
64 bytes from yandex.ru (213.180.204.11): icmp_seq=11 ttl=52 time=188 ms
Только я файлы те которые появились не переменовал, их надо ещё переменовывать?

Вот только я нажимаю на эти файлы, а мне в ответ, то что они не существуют


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

Kluivert писал(а):
24.09.2005 20:29
service network restart Сделал но eth0 fauld
ping www.yandex.ru пингуется.
PING www.yandex.ru (213.180.204.11) 56(84) bytes of data.
64 bytes from yandex.ru (213.180.204.11): icmp_seq=1 ttl=52 time=187 ms
Только я файлы те которые появились не переменовал, их надо ещё переменовывать?


Не надо, мы их уже назвали как надо! Это для того, чтобы они при перезагрузке сами запускались.

У тебя сетевуха куда смотрит?

Покажи ifconfig.
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:60 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:3240 (3.1 Kb) TX bytes:3240 (3.1 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:62.118.129.18 P-t-P:212.30.161.3 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:66 errors:3 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:34684 (33.8 Kb) TX bytes:37826 (36.9 Kb)


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

ctrl-alt-f1

#draknet
выбирай eth0 -> dhcp

#service network restart
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

я зашёл туда, поставил выбрал ауто и там нету не чего подобного eth0 -> dhcp


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

#draknet -> configure -> auto -> LAN -> AutomaticIP (dhcp) -> network restart yes
#ifconfig
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

Во, я это и сделал в первый раз
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:4320 (4.2 Kb) TX bytes:4320 (4.2 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:62.118.129.18 P-t-P:212.30.161.3 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1794 errors:3 dropped:0 overruns:0 frame:0
TX packets:2013 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:1322839 (1.2 Mb) TX bytes:681455 (665.4 Kb)


Спасибо сказали:
Аватара пользователя
sergius
Сообщения: 782

Re: Сеть

Сообщение sergius »

#ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
Потом:
#ifconfig
Покажи.
Спасибо сказали:
Kluivert
Сообщения: 361
Статус: Познаю Linux
ОС: Ubuntu 9.10

Re: Сеть

Сообщение Kluivert »

eth0 Link encap:Ethernet HWaddr 00:40:F4:5A:06:C2
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:74 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:11802 (11.5 Kb) TX bytes:23713 (23.1 Kb)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:4320 (4.2 Kb) TX bytes:4320 (4.2 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:62.118.129.18 P-t-P:212.30.161.3 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:2136 errors:3 dropped:0 overruns:0 frame:0
TX packets:2395 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:1514240 (1.4 Mb) TX bytes:896007 (875.0 Kb)


Спасибо сказали: