Portál AbcLinuxu, 10. května 2025 06:17
iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.2diky
# generated by NetworkManager, do not edit! nameserver 192.168.157.100 nameserver 192.168.0.1
aaa@debian:~$ ip a l 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 08:00:27:a8:2e:71 brd ff:ff:ff:ff:ff:ff inet 192.168.1.1/24 brd 192.168.1.255 scope global eth0 inet6 fe80::a00:27ff:fea8:2e71/64 scope link valid_lft forever preferred_lft forever 3: sit0: <NOARP> mtu 1480 qdisc noop link/sit 0.0.0.0 brd 0.0.0.0 aaa@debian:~$
aaa@debian:~$ ip r l 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.1 default via 192.168.1.2 dev eth0 aaa@debian:~$
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.