自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Ubuntu單網(wǎng)卡設(shè)置安裝雙interface和Stun server的方法

運維 系統(tǒng)運維
Ubuntu單網(wǎng)卡下如何設(shè)置雙interface和Stun server的安裝呢?下文給出了詳細的描述,具體內(nèi)容如下所述。

Ubuntu單網(wǎng)卡下如何設(shè)置雙interfaceStun server的安裝呢?下文給出了詳細的描述,具體內(nèi)容如下所述。

因為stun server需要同時監(jiān)聽兩個entry(即兩對IP和PORT)進行對NAT的檢測,所以需要server需要兩個interface. 首先在Ubuntu上設(shè)置兩個虛擬的interface,因為只有一個物理的interface,所以只能在這一個上進行虛擬。編輯網(wǎng)絡(luò)interface文件/etc/network/interfaces, 如下: ====================================================

  1.  # more interfaces  
  2. auto lo  
  3. iface lo inet loopback  
  4. auto eth0:0                                            /*啟用虛擬iface0:0*/  
  5. iface eth0:0 inet static                              /*設(shè)置此iface為靜態(tài)IP*/  
  6. address 172.25.27.218  
  7. netmask 255.255.255.0  
  8. gateway 172.25.27.254 auto eth0:1                                         
  9. iface eth:1 inet dhcp                               /*設(shè)置此iface為動態(tài)獲取IP* 

======================================================

然后重啟網(wǎng)絡(luò)配置

 

  1. sudo /etc/init.d/networking restart. 

 

下載stun server的軟件stund_0.96_Aug13.gz,然后解壓。進入stun安裝目錄,然后make就ok了。 ====================================================== :~

  1. # cd stund  
  2. all   
  3. # ./server -h  
  4. STUN server version 0.96  
  5. Usage:  
  6. ./server [-v] [-h] [-h IP_Address] [-a IP_Address] [-p port] [-o port] [-m mediaport] If the IP addresses of your NIC are 10.0.1.150 and 10.0.1.151, run this program with  
  7.     ./server -v -h 10.0.1.150 -a 10.0.1.151  
  8. STUN servers need two IP addresses and two ports, these can be specified with:  
  9. -h sets the primary IP  
  10. -a sets the secondary IP  
  11. -p sets the primary port and defaults to 3478  
  12. -o sets the secondary port and defaults to 3479  
  13. -b makes the program run in the backgroud  
  14. -m sets up a STERN server starting at port m  
  15. -v runs in verbose mode # 

===========================================================

啟動就簡單了,有-h提示,一目了然。

  1. -v -h 172.25.27.126 -a 172.25.27.218  

總結(jié):

希望本文介紹的Ubuntu單網(wǎng)卡設(shè)置安裝雙interface和Stun server的方法能夠?qū)ψx者有所幫助,更多有關(guān)linux系統(tǒng)的知識還有待于讀者去探索和學(xué)習(xí)。

責任編輯:韓亞珊 來源: 火魔網(wǎng)
相關(guān)推薦

2011-04-14 11:41:41

UbuntuIP

2010-07-27 13:07:23

NFS Server

2009-07-10 16:31:01

Ubuntu下安裝JD安裝Tomcat

2010-08-03 11:41:24

Ubuntu NFS

2011-09-06 14:44:05

Ubuntu

2011-08-11 11:07:16

路由器設(shè)置

2010-02-22 13:31:32

Ubuntu安裝

2011-08-30 17:12:27

Ubuntuwindows7

2011-09-08 10:21:16

UbuntuSNMP

2012-06-28 11:46:54

WindowsUbuntu

2011-03-10 10:51:45

Ubuntu搭建LAMP

2009-08-22 20:31:01

Ubuntu安裝VMw

2012-05-24 17:02:47

Ubuntu 12.0

2011-09-07 13:33:51

ubuntuUbuntu Twea

2010-03-03 13:56:43

Linux ubant

2011-03-15 13:39:14

iptablesstun

2011-09-01 16:59:28

UbuntuApache

2010-03-05 14:09:12

Ubuntu文本安裝

2010-07-21 09:28:46

Ubuntu Linu

2010-01-05 14:11:32

Linux安裝無線網(wǎng)卡
點贊
收藏

51CTO技術(shù)棧公眾號