This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
настройка_сети_в_freebsd [2016/09/14 12:33] val |
настройка_сети_в_freebsd [2022/12/29 08:31] (current) val |
||
|---|---|---|---|
| Line 39: | Line 39: | ||
| # netstat -I em0 -inb -w 1 | # netstat -I em0 -inb -w 1 | ||
| + | |||
| + | # ping 8.8.8.8 | ||
| # traceroute -n 8.8.8.8 | # traceroute -n 8.8.8.8 | ||
| Line 58: | Line 60: | ||
| ### Rename interface example ### | ### Rename interface example ### | ||
| # ifconfig_em0_name=wan0 | # ifconfig_em0_name=wan0 | ||
| + | # ifconfig_wan0="inet 172.16.1.X/24" | ||
| ### Alias example ### | ### Alias example ### | ||
| Line 71: | Line 74: | ||
| ### UP iface without ip example ### | ### UP iface without ip example ### | ||
| # ifconfig_em0="up" | # ifconfig_em0="up" | ||
| + | |||
| + | ### Bridge example ### | ||
| + | # cloned_interfaces="bridge0" | ||
| + | # ifconfig_bridge0="addm em0 addm em1 up" | ||
| + | # ifconfig_em0="dhcp" | ||
| + | # ifconfig_em1="up" | ||
| </code><code> | </code><code> | ||
| # /etc/rc.d/hostname start | # /etc/rc.d/hostname start | ||
| Line 87: | Line 96: | ||
| 172.16.1.X server.corpX.un server | 172.16.1.X server.corpX.un server | ||
| - | |||
| - | 172.16.1.254 proxy | ||
| </code><code> | </code><code> | ||
| # cat /etc/resolv.conf | # cat /etc/resolv.conf | ||