User Tools

Site Tools


настройка_сети

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
настройка_сети [2009/04/06 07:29]
val
— (current)
Line 1: Line 1:
-====== Настройка сети ====== 
- 
-===== Файлы конфигурации ===== 
- 
-==== Файл /​etc/​rc.conf ==== 
-<​code>​ 
-ifconfig_em0="​inet 10.5.13.X/​24"​ 
-defaultrouter="​10.5.13.254"​ 
-</​code>​ 
- 
-==== Файл /etc/hosts ==== 
-<​code>​ 
-[gX:~] # cat /etc/hosts 
- 
-10.5.3.Y gY 
-10.5.3.50 g50 
-</​code>​ 
- 
-==== Файл /​etc/​resolv.conf ==== 
-<​code> ​ 
-[gX:~] # cat /​etc/​resolv.conf ​ 
-domain ​ class 
-nameserver ​     127.0.0.1 
-</​code>​ 
- 
-===== Команды для настройки ===== 
- 
-==== ifconfig ==== 
-<​code>​ 
-# ifconfig em0 -alias 
- 
-# ifconfig em0 inet 10.5.13.X/​24 
- 
-# /​etc/​rc.d/​netif start 
-</​code>​ 
- 
-==== route ==== 
-<​code>​ 
-route -n flush 
- 
-route add default 10.5.13.254 
- 
-/​etc/​rc.d/​routing start 
-</​code>​ 
- 
-===== Команды для диагностики ===== 
-<​code>​ 
-Команда  ​       Ключи 
-arp         -a -d 
-ping         -s размер 
-netstat -rn –f inet –I интерфейс -inb 
-ifstat  
-traceroute  
-sockstat -4 
-tcpdump  ​       -i em0 -n -s 0 -X "port 21 and host 10.5.13.15"​ 
-nslookup  
-</​code>​ 
- 
  
настройка_сети.1238988555.txt.gz · Last modified: 2013/05/22 13:50 (external edit)