Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Polskie forum (Polish)
  • Search

Pobieranie nazwy hosta przez dhcpcd

Witajcie na polskim forum użytkowników Gentoo!
Opis instalacji i pracy z Gentoo. Pozostała dokumentacja Gentoo

Moderator: SlashBeast

Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
Author
Message
wolk
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Wed Jul 19, 2006 12:07 pm

Pobieranie nazwy hosta przez dhcpcd

  • Quote

Post by wolk » Mon Apr 23, 2007 2:17 pm

Klient dhcpcd przy pobieraniu adresu sieciowego automatycznie zmienia mi nazwe na inna niz localhost, chcialbym tego uniknac niestety nie znalazlem w manualu jakiejs opcji mowiacej temu klientowi aby nie pobieral nazwy hosta. Czy jest taka mozliwosc, a moze powinienem uzyc innego klienta, jesli tak to ktorego?

Moja konfiguracja:
modules=( "dhcpcd" )
config_eth0=( "dhcp" )
dhcpcd_eth0="-t 10
Top
pawcyk
n00b
n00b
Posts: 30
Joined: Sat Mar 31, 2007 7:46 pm

  • Quote

Post by pawcyk » Mon Apr 23, 2007 2:42 pm

ja wyczytalem z mana:

Code: Select all

       -H     Forces dhcpcd to set hostname of the host to the hostname option supplied by DHCP server.  By default dhcpcd will NOT set hostname of the  host  to
              the hostname option received from DHCP server unless the current hostname is blank, (none) or localhost.
Wynika z ego ze dhcpcd automatycznie podmienia nazwe hosta gdy jest ona pusta, lub ustawiona na 'localhost'
Swoja droga czemu nie ustawisz jakiejs nazwy hosta dla tego komputerka, problem od razu sie rozwiaze
Top
pawels
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 124
Joined: Fri Feb 17, 2006 10:50 am
Location: Polska Kościerzyna

  • Quote

Post by pawels » Mon Apr 23, 2007 7:28 pm

Być może to ci pomoże. Bo chyba w ten sposób rozwiązałem ten problem.

Code: Select all

# GENERIC DHCP OPTIONS
# Set generic DHCP options like so
#dhcp_eth0="release nodns nontp nonis nogateway nosendhost"

# This tells the dhcp client to release it's lease when it stops, not to
# overwrite dns, ntp and nis settings, not to set a default route and not to
# send the current hostname to the dhcp server and when it starts.
# You can use any combination of the above options - the default is not to
# use any of them.
Top
wolk
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Wed Jul 19, 2006 12:07 pm

  • Quote

Post by wolk » Wed Apr 25, 2007 3:38 pm

Wydawalo by sie ze nosendhost powinno pomodz, jednak nie pomogla tak jak zadna z innych flag :(
Top
pancurski
Guru
Guru
User avatar
Posts: 495
Joined: Thu Sep 15, 2005 9:02 am
Location: Lublin, Poland / Slough, UK

  • Quote

Post by pancurski » Wed Apr 25, 2007 4:19 pm

niewiem czy dobrze cie rozumiem, może chodzi o to
http://www.gentoo.org/doc/pl/handbook/h ... #doc_chap2
Listing 5 i Uwaga
Pokaż też całą zawartość

Code: Select all

/etc/conf.d/net
/etc/conf.d/hostname
Top
wolk
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Wed Jul 19, 2006 12:07 pm

  • Quote

Post by wolk » Sun May 06, 2007 6:51 pm

cat /etc/conf.d/net

config_eth0=( "dhcp" )
dhcp_eth0="nosendhost nonis nontp"
dhcpcd_eth0="-t 10"

uzywam /etc/hostname a jego zawartosc:
localhost
Top
timor
Guru
Guru
User avatar
Posts: 517
Joined: Wed May 25, 2005 11:56 pm
Location: Poland
Contact:
Contact timor
Website

  • Quote

Post by timor » Mon May 07, 2007 8:05 pm

A czy ustawienie adresu IP, bramy itp na sztywno nie odpowiadałoby Ci? Ale oczywiście nie jest to ani trochę dynamiczne.
Top
wolk
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Wed Jul 19, 2006 12:07 pm

  • Quote

Post by wolk » Sun May 13, 2007 4:28 pm

nie jestem w takiej sieci ze adres musze miec przydzielany dynamicznie
Top
Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Polskie forum (Polish)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic