Problem s konfiguraci site
Zdenek Zikan
xzikan na fi.muni.cz
Středa Prosinec 22 19:42:21 CET 2004
>> Ted jsem prisel na dalsi vec. Kdyz nabutuju live distro Damn Small
>> Linux, tak se to automaticky pripoji na sit a beha to. Kde bych mel
>> hledat rozdily v nastaveni mezi DSL a Fedorou? V
>> /etc/sysconfig/network-scripts/ DSL nic nema. Ale konfiguraci site moc
>> nerozumim.
>>
>> Diky, Zdenek Zikan
>
>
> No tak porovnat IP sítovek a jaký používají DNS :-)
>
> /etc/resolv.conf
> /etc/nsswitch.conf
>
> ip link
> ip route
>
> případně staré příkazy ifconfig, route.
IP sitovek je stejne (ifconfig pise "inet adr:192.168.2.101") a DNS taky
(v /etc/resolv.conf je "nameserver 192.168.2.1")
Davam do prilohy textaky s vystupem nasledujicich prikazu na Fedore a
Damn Small Linuxu:
cat /etc/resolv.conf
cat /etc/nsswitch.conf
ip link
ip route
ifconfig
route
Budete nekdo tak hodny a mrknete na to? Ja z toho na nic neprisel :-/
Diky, Zdenek Zikan
------------- další část ---------------
; generated by /sbin/dhclient-script
nameserver 192.168.2.1
------------- další část ---------------
search ktct.lan
nameserver 192.168.2.1
------------- další část ---------------
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
# nisplus or nis+ Use NIS+ (NIS version 3)
# nis or yp Use NIS (NIS version 2), also called YP
# dns Use DNS (Domain Name Service)
# files Use the local files
# db Use the local database (.db) files
# compat Use NIS on compat mode
# hesiod Use Hesiod for user lookups
# [NOTFOUND=return] Stop searching if not found so far
#
# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd: db files nisplus nis
#shadow: db files nisplus nis
#group: db files nisplus nis
passwd: files
shadow: files
group: files
#hosts: db files nisplus nis dns
hosts: files dns
# Example - obey only what nisplus tells us...
#services: nisplus [NOTFOUND=return] files
#networks: nisplus [NOTFOUND=return] files
#protocols: nisplus [NOTFOUND=return] files
#rpc: nisplus [NOTFOUND=return] files
#ethers: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: files
publickey: nisplus
automount: files
aliases: files nisplus
------------- další část ---------------
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
------------- další část ---------------
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0d:60:b1:c0:48 brd ff:ff:ff:ff:ff:ff
------------- další část ---------------
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:0d:60:b1:c0:48 brd ff:ff:ff:ff:ff:ff
------------- další část ---------------
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.101
169.254.0.0/16 dev eth0 scope link
default via 192.168.2.1 dev eth0
------------- další část ---------------
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.101
default via 192.168.2.1 dev eth0
------------- další část ---------------
eth0 ZapouzdĹenĂ:Ethernet HWadr 00:0D:60:B1:C0:48
inet adr:192.168.2.101 VĹĄesmÄr:192.168.2.255 Maska:255.255.255.0
AKTIVOVĂNO VĹ ESMÄROVĂ_VYSĂLĂNĂ BÄŽà MULTICAST MTU:1500 Metrika:1
RX packets:1118 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
kolizĂ:0 dĂŠlka odchozĂ fronty:1000
RX bytes:76722 (74.9 Kb) TX bytes:1518 (1.4 Kb)
VstupnÄ/VĂ˝stupnĂ port:0x8000 PamÄĹĽ:c0220000-c0240000
lo ZapouzdĹenĂ:MĂstnĂ smyÄka
inet adr:127.0.0.1 Maska:255.0.0.0
AKTIVOVĂNO SMYÄKA BÄŽà MTU:16436 Metrika:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
kolizĂ:0 dĂŠlka odchozĂ fronty:0
RX bytes:196 (196.0 b) TX bytes:196 (196.0 b)
------------- další část ---------------
eth0 Link encap:Ethernet HWaddr 00:0D:60:B1:C0:48
inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3287 errors:0 dropped:0 overruns:0 frame:0
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:265049 (258.8 KiB) TX bytes:6970 (6.8 KiB)
Interrupt:11 Base address:0x8000 Memory:c0220000-c0240000
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:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 B) TX bytes:100 (100.0 B)
------------- další část ---------------
Smerovaci tabulka v jĂĄdru pro IP
AdresĂĄt BrĂĄna Maska Prizn Metrik Odkaz Uzt rozhrani
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
------------- další část ---------------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
default . 0.0.0.0 UG 0 0 0 eth0
Další informace o konferenci Linux