Tud e segiteni valaki abban, hogy mit es hova kell beirni ahoz, hogy egy halokartyahoz tobb IP legyen hozzarendelve. Egy kivonatos doksi is sokat segitene! A man-ok tul bobeszeduek...
- 1577 megtekintés
Hozzászólások
Első körben közölhetnéd, hogy milyen operációs rendszerről is beszélünk...
--
trey @ gépház
- A hozzászóláshoz be kell jelentkezni
Igaz! debian echt 2.6.15.1!
- A hozzászóláshoz be kell jelentkezni
ein echter debian etch :) (bocs, nem bírtam szó nélkül hagyni)
- A hozzászóláshoz be kell jelentkezni
- A hozzászóláshoz be kell jelentkezni
/etc/network/interfaces
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 10.1.129.181
netmask 255.255.0.0
network 10.0.0.0
broadcast 10.255.255.255
gateway 10.1.255.254
auto eth0:1
iface eth0:1 inet static
address 10.1.1.181
netmask 255.255.0.0
zcat /usr/share/doc/ifupdown/examples/network-interfaces.gz
# A more complicated ethernet setup with a single ethernet card with
# two interfaces.
# Note: This happens to work since ifconfig handles it that way, not because
# ifup/down handles the ':' any differently.
# Warning: There is a known bug if you do this, since the state will not
# be properly defined if you try to 'ifdown eth0' when both interfaces
# are up. The ifconfig program will not remove eth0 but it will be
# removed from the interfaces state so you will see it up until you execute:
# 'ifdown eth0:1 ; ifup eth0; ifdown eth0'
# BTW, this is "bug" #193679 (it's not really a bug, it's more of a
# limitation)
#
# auto eth0 eth0:1
# iface eth0 inet static
# address 192.168.0.100
# network 192.168.0.0
# netmask 255.255.255.0
# broadcast 192.168.0.255
# gateway 192.168.0.1
# iface eth0:1 inet static
# address 192.168.0.200
# network 192.168.0.0
# netmask 255.255.255.0
Zsiraf
p.s.: RTFM
p.s.2: azt hiszem az a FM ennel egyszerubb es rovidebb nem is lehetne...
- A hozzászóláshoz be kell jelentkezni
Kosz, nagyon megy!
- A hozzászóláshoz be kell jelentkezni
És pl Solaris 9/10-re ?
- A hozzászóláshoz be kell jelentkezni
#cat /etc/hosts
# Internet host table
#
127.0.0.1 localhost
192.168.2.1 szerverke
192.168.2.2 szerverke2
# ls -l /etc/hostname*
-rw-r--r-- 1 root root 5 Feb 9 17:43 /etc/hostname.bge0
#cat /etc/hostname.bge0
szerverke
addif szerverke2
- A hozzászóláshoz be kell jelentkezni