get interface //查看接口信息A - Active, I - Inactive, U - Up, D - Down, R - ReadyInterfaces in vsys Root: Na..."/>
溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

Netscreen防火墻常用命令-接口篇

發(fā)布時(shí)間:2020-07-24 17:02:39 來源:網(wǎng)絡(luò) 閱讀:732 作者:msft 欄目:安全技術(shù)

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 //建立一個(gè)3層的zone,名為Office

ns25-> set zone name L2-office L2 1 //建立一個(gè)2層的zone,名為L(zhǎng)2-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


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI