Professional Documents
Culture Documents
5. jun 2012.
Mreno okruenje
ifup [-a|interface]
Komanda ifconfig prikazuje i podeava mrene interfejse
ifconfig -a
route -n
eth0
Konfiguracioni fajlovi
Podeavanja pomou ifconfig, route, arp, ip komandi su aktivna
do restarta sistema (ili sputanja interfejsa)
/etc/hostname
/etc/hosts
/etc/resolv.conf
/etc/networks
/etc/services
/etc/protocols
Konfiguracija mree
Konfiguracija mrenih interfejsa je u /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 147.91.8.8
netmask 255.255.254.0
gateway 147.91.8.1
auto eth1
iface eth1 inet dhcp
-f flood ping
Primer:
..................................................................................
..................................................................................
....E
251 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2998ms
tracepath, traceroute
Veba 6 - Routing
Primer mree:
SNAT