Nefunguje internet (archlinux)

Sekcia: Hardware a Drivery 12.02.2011 | 23:11
Broadcast   Návštevník
Zdravim

Po instalacii archlinuxu neviem nastavit internet. Nefunguje ani ked dam ip, nazov webu alebo adresu gateway.
Uz som z toho na nervy.

Dakujem za pomoc

/etc/rc.conf


#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
# in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Bratislava"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="myhost"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
eth0="eth0 172.37.47.214 netmask 255.255.255.224 broadcast 172.27.37.223"
#eth0="dhcp"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 172.37.47.254"
ROUTES=(gateway)

# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond)

/etc/hosts

#
# /etc/hosts: static lookup table for host names
#

#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost myhost

# End of file


/etc/resolv.conf


#
# /etc/resolv.conf
#

#search <yourdomain.tld>
#nameserver <ip>

# End of file
nameserver 8.8.8.8
nameserver 8.8.4.4
    • Re: Nefunguje internet (archlinux) 12.02.2011 | 23:17
      Avatar default Debian  Používateľ
      a co DNS server, ten si nastavoval?
      R.K
      • Re: Nefunguje internet (archlinux) 12.02.2011 | 23:23
        Broadcast   Návštevník
        ten je myslim v resolv.conf
        • Re: Nefunguje internet (archlinux) 12.02.2011 | 23:27
          Avatar default Debian  Používateľ
          v poriadku, ale ak mas vsetko nastavene ako ma byt, tak to musi ist, sam musis vediet co si zadaval, sa pozri ci si to DNS zadal, a over si udaje v prvom rade, ip , maska, brana , dns
          R.K
          • Re: Nefunguje internet (archlinux) 12.02.2011 | 23:47
            Broadcast   Návštevník
            udaje som overil uz 10x...ip, maska, brana mam take ako v zmluve na inter. pripoj., dns ma googlacke, akurat k vypoctu broadcast som pouzil tuto kalkulacku <http://www.tech-faq.com/calculate-broadcast-address>
            fakt uz neviem kde s tym moze byt problem

            vdaka aspon za snahu
            • Re: Nefunguje internet (archlinux) 12.02.2011 | 23:59
              Avatar default Debian  Používateľ
              mal som arch donedavna, a nechal som si confighy pre istotu, porovnaval som to a jedinu zmenu ktoru som zistil je ze nemam od tialto tieto veci , v rc.conf

              /etc/hosts

              #
              # /etc/hosts: static lookup table for host names
              #

              #<ip-address> <hostname.domain.org> <hostname>
              127.0.0.1 localhost.localdomain localhost myhost

              # End of file


              /etc/resolv.conf


              #
              # /etc/resolv.conf
              #

              #search <yourdomain.tld>
              #nameserver <ip>

              # End of file
              nameserver 8.8.8.8
              nameserver 8.8.4.4


              skus to zo srandy dat prec, jedna vec ma este napadla, nerobis to nahodou vo virtual boxe? , ak nie tak an to ani neodpovedj, nechaj si poradit od inych alebo skus dat prec ten text vyssie v rc.conf
              R.K
              • Re: Nefunguje internet (archlinux) 13.02.2011 | 00:09
                Broadcast   Návštevník
                :D :D ten host a resolv.conf su 2 rozne subory, sry mal som pouzit tagy na zpriehladnenie...vypis som dal spolu s rc.conf, resolv.conf a hosts
                • Re: Nefunguje internet (archlinux) 13.02.2011 | 00:24
                  Avatar default Debian  Používateľ
                  aha hned mi to bolo divne ze to nekonci DAEMONSAMI :) , a na inych systemoch ti to islo?
                  R.K
                  • Re: Nefunguje internet (archlinux) 13.02.2011 | 00:47
                    Broadcast   Návštevník
                    jj na gentoo aj ubuntu prave som zistil, ze ak zadam route add default gw 172.37.47.254 dostanem chybu SIOCADDRT: no such process
                    • Re: Nefunguje internet (archlinux) 13.02.2011 | 16:01
                      Broadcast   Návštevník
                      Vyriesene:

                      gateway som nastavil takto:
                      Kód: [Vybrat]
                      g0="172.37.47.254 eth0"
                      gateway="default gw 172.37.47.254"
                      ROUTES=(g0 gateway)


                      a potom som zadal: /etc/rc.d/network start