Netscreen防火墻常用命令-接口篇
ns25-> get interface //查看接口信息
A - Active, I - Inactive, U - Up, D - Down, R - Ready
Interfaces in vsys Root:
Name IP Address Zone MAC VLAN State VSD
eth2 192.168.0.2/24 Trust 0014.f642.7c20 - U -
eth3 0.0.0.0/0 DMZ 0014.f642.7c25 - D -
eth4 116.233.11.11/32 Untrust 0014.f642.7c26 - U -
eth5 0.0.0.0/0 Trust 0014.f642.7c27 - D -
vlan1 0.0.0.0/0 VLAN 0014.f642.7c2f 1 D -
ns25-> get int eth2 //查看接口1的配置
Interface ethernet1:
number 0, if_info 0, if_index 0, mode nat
link up, phy-link up/full-duplex
vsys Root, zone Trust, vr trust-vr
dhcp client disabled
PPPoE disabled
*ip 192.168.0.2/24 mac 0014.f642.7c20
*manage ip 192.168.0.2, mac 0014.f642.7c20
route-deny disable
ping enabled, telnet enabled, SSH enabled, SNMP enabled
web enabled, ident-reset disabled, SSL enabled
webauth disabled, webauth-ip 0.0.0.0
OSPF disabled BGP disabled RIP disabled
bandwidth: physical 100000kbps, configured 0kbps, current 0kbps
total configured gbw 0kbps, total allocated gbw 0kbps
DHCP-Relay disabled
DHCP-server enabled, status on
ns25-> set zone name office //建立一個3層的zone,名為Office
ns25-> set zone name L2-office L2 1 //建立一個2層的zone,名為L2-Office(二層接口必須以L2-開始命名),vlan id 為1。
ns25-> set interface eth5 zone office //將接口4設(shè)置為office zone的接口。
ns25-> set interface vlan1 ip 10.10.10.10/24 //將vlan1的ip設(shè)置為10.10.10.10
ns25-> set interface vlan1 manage web //開通vlan1接口的web管理功能
ns25-> set interface vlan1 manage ping //開通vlan1接口的ping功能
ns25-> set interface eth5 nat //將接口4設(shè)置為nat模式
ns25-> set interface eth5 route //將接口4設(shè)置為路由模式
set interface ethernet1 dhcp server service //在接口1開啟dhcp服務(wù)
set interface ethernet1 dhcp server enable //在接口1開啟dhcp服務(wù)
set interface ethernet1 dhcp server option lease 1440000 //設(shè)置dhcp服務(wù)租期
set interface ethernet1 dhcp server option gateway 192.168.0.2
set interface ethernet1 dhcp server option netmask 255.255.255.0
set interface ethernet1 dhcp server option dns1 202.96.209.5
set interface ethernet1 dhcp server option dns2 202.96.209.133
set interface ethernet1 dhcp server ip 192.168.0.10 to 192.168.0.100 //dhcp地址池
ns25-> set interface eth4 mip 1.1.1.1 host 2.2.2.2 vrouter trust-vr //設(shè)置mip,外網(wǎng)ip1.1.1.1 綁定到內(nèi)網(wǎng)ip 2.2.2.2上
ns25-> unset interface eth4 mip 1.1.1.1 //取消1.1.1.1的mip設(shè)置
ns25-> set interface eth4 vip untrust-ip + 21 ftp 192.168.0.10 //設(shè)置vip
ns25-> set interface eth4 vip untrust-ip + 8000 ftp 192.168.0.10
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
網(wǎng)站欄目:Netscreen防火墻常用命令-接口篇-創(chuàng)新互聯(lián)
當(dāng)前地址:http://aaarwkj.com/article18/dohdgp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制開發(fā)、自適應(yīng)網(wǎng)站、微信小程序、域名注冊、電子商務(wù)、網(wǎng)站導(dǎo)航
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容