[mdk-re] настройка сети
Kurt
=?iso-8859-1?q?kurt_=CE=C1_pochtamt=2Eru?=
Чт Мар 28 19:37:15 MSK 2002
Доброго дня!
>> Сетевой адрес Маска Адрес шлюза Интерфейс
>> Метрика
>> 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1
>> 1 192.168.0.0 255.255.255.0 192.168.0.1 192.168.0.1 1
>> 192.168.0.1 255.255.255.255 127.0.0.1 127.0.0.1 1
>> 192.168.0.255 255.255.255.255 192.168.0.1 192.168.0.1 1
>> 224.0.0.0 224.0.0.0 192.168.0.1 192.168.0.1 1
>> 255.255.255.255 255.255.255.255 192.168.0.1 0.0.0.0 1
>> Говорит такой команды нет. Или как ее вводить надо?
Vitaly> Если не под рутом, то /sbin/ifconfig
Я не знал, а под рутом я уже боюсь лишний раз заходить:)
ifconfig
--
eth0 Link encap:Ethernet HWaddr 00:50:BF:67:E7:E5
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:97 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:5820 (5.6 Kb)
Interrupt:11 Base address:0xf000
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:82 errors:0 dropped:0 overruns:0 frame:0
TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5036 (4.9 Kb) TX bytes:5036 (4.9 Kb)
-----
route -n
--
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
----
Michael> Опять же -- что с arp -a ?
Из под линукса:
--
? (192.168.0.1) at <incomplete> on eth0
Из под виды:
--
Не найдены записи в таблице ARP
Из под винды когда соединена с другой виндой:
--
Интерфейс: 192.168.0.1 on Interface 0x2000003
Адрес IP Физический адрес Тип
192.168.0.2 00-50-bf-67-e7-e5 динамический
---
service network status
--
Configured devices:
lo eth0
Devices that are down:
Devices with modified configuration:
------
cat /etc/sysconfig/network
--
NETWORKING=yes
FORWARD_IPV4=true
HOSTNAME="kurt"
GATEWAY=192.168.0.1
-----
cat /etc/sysconfig/network-scripts/ifcfg-eth0
--
DEVICE="eth0"
BOOTPROTO="none"
IPADDR="192.168.0.2"
NETMASK="255.255.255.0"
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT="yes"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"
-----
lsmod
--
lsmodModule Size Used by
parport_pc 23568 1 (autoclean)
lp 5728 0 (autoclean)
parport 22688 1 (autoclean) [parport_pc lp]
autofs4 8000 1 (autoclean)
8139too 12128 1 (autoclean)
sb 7456 0
sb_lib 32016 0 [sb]
uart401 6064 0 [sb_lib]
sound 53392 0 [sb_lib uart401]
soundcore 3440 5 [sb_lib sound]
floppy 45936 0 (autoclean)
serial 44464 0 (autoclean)
isa-pnp 27120 0 (autoclean) [sb serial]
usb-uhci 20624 0 (unused)
usbcore 47984 1 [usb-uhci]
ipt_MASQUERADE 1200 1 (autoclean)
iptable_nat 13168 0 (autoclean) [ipt_MASQUERADE]
iptable_filter 1648 0 (autoclean) (unused)
ip_tables 10592 5 [ipt_MASQUERADE iptable_nat iptable_filter]
ip_conntrack_irc 2576 0 (unused)
ip_conntrack_ftp 3280 0 (unused)
ip_conntrack 13136 3 [ipt_MASQUERADE iptable_nat ip_conntrack_irc ip_conntrack_ftp]
nls_koi8-r 3824 4 (autoclean)
nls_cp866 3808 4 (autoclean)
vfat 9360 4 (autoclean)
fat 29600 0 (autoclean) [vfat]
apm 9056 2
agpgart 26304 0 (unused)
rtc 5632 0 (autoclean)
-----
lspci -v
--
00:00.0 Host bridge: Intel Corporation 440LX/EX - 82443LX/EX Host bridge (rev 03)
Flags: bus master, medium devsel, latency 64
Memory at e4000000 (32-bit, prefetchable) [size=64M]
Capabilities: [a0] AGP version 1.0
00:01.0 PCI bridge: Intel Corporation 440LX/EX - 82443LX/EX AGP bridge (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: e0800000-e16fffff
Prefetchable memory behind bridge: e2f00000-e3ffffff
00:04.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 01)
Flags: bus master, medium devsel, latency 0
00:04.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Flags: bus master, medium devsel, latency 32
I/O ports at b800 [size=16]
00:04.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Flags: bus master, medium devsel, latency 32, IRQ 10
I/O ports at b400 [size=32]
00:04.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 01)
Flags: medium devsel, IRQ 9
00:09.0 Multimedia video controller: Brooktree Corporation Bt878 (rev 11)
Subsystem: Avermedia Technologies Inc: Unknown device 0003
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at e2000000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
00:09.1 Multimedia controller: Brooktree Corporation Bt878 (rev 11)
Subsystem: Avermedia Technologies Inc: Unknown device 0003
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at e1800000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at b000 [size=256]
Memory at e0000000 (32-bit, non-prefetchable) [size=256]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [50] Power Management version 2
01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage Pro AGP 1X/2X (rev 5c) (prog-if 00 [VGA])
Subsystem: ATI Technologies Inc 3D Rage Pro AGP 1X/2X
Flags: bus master, VGA palette snoop, stepping, medium devsel, latency 64
Memory at e3000000 (32-bit, prefetchable) [size=16M]
I/O ports at d800 [size=256]
Memory at e0800000 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at e2fe0000 [disabled] [size=128K]
Capabilities: [50] AGP version 1.0
---------------------
ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) from 192.168.0.2 : 56(84) bytes of data.
WARNING: kernel is not very fresh, upgrade is recommended.
From 192.168.0.2: icmp_seq=3 Destination Host Unreachable
From 192.168.0.2 icmp_seq=3 Destination Host Unreachable
>И для компании
cat /proc/interrupts
CPU0
0: 45990 XT-PIC timer
1: 1409 XT-PIC keyboard
2: 0 XT-PIC cascade
5: 5142 XT-PIC soundblaster
7: 2 XT-PIC parport0
8: 1 XT-PIC rtc
10: 4 XT-PIC usb-uhci, bttv
11: 351 XT-PIC eth0
12: 21995 XT-PIC PS/2 Mouse
14: 14703 XT-PIC ide0
NMI: 0
ERR: 0
>> Все что мне удалось выяснить при помози netconf
>>
>> Adaptor1
>> ip написан 192.168.0.2
>> netmask 255.255.255.0
>> net device eth0
>> kernel modul - 8139too
>> gateway - 192.168.0.1
Vitaly> Всё красиво :(
>>
>> Ну моя основная работа за компом - это работа в интернете. Не будет
>> сети, не будет и доступа в инет, модоем на втором компе.
Vitaly> Будет!
Спасибо, обнадежили.
Спасибо за внимание.
--
С наилучшими пожеланиями,Kurt.
проект "Виртуальная любовь". http://clc.da.ru/
Подробная информация о списке рассылки community