Portál AbcLinuxu, 28. října 2025 18:18
#ifconfig eth1 192.168.1.2 netmask 255.255.255.0
#route add default gw 192.168.1.1nebo
#ip addr add 192.168.1.2 brd + dev eth1
#ip route add default via 192.168.1.1Po startu ifconfig tu eth1 ani neukaze. Zkousel jsem nastavit v /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping eth1
script grep
map eth1
#-----Puvodni reseni DHCP ---------
# The primary network interface
#allow-hotplug eth1
#iface eth1 inet dhcp
#-----Puvodni reseni DHCP ---------
# The primary network interface
allow-hotplug eth1
auto eth1
iface eth1 inet static
adress 192.168.1.2
netmask 255.255.255.0
network 192.168.1.1
broadcast 192.168.1.255
gateway 192.168.1.1
#dns-server 192.168.1.1
Uz jsem prolez asi vsechny navody, ale bud sem slepej, nebo blbej. Dekuji za pomoc.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.