導航:首頁 > 編程系統 > linux介面信息

linux介面信息

發布時間:2023-07-10 05:18:36

linux下用什麼命令可以查看網路介面的信息

要查看開放這些埠的具體進程和用戶名,可以通過netstat命令進行簡單查詢:
netstat命令各個參數說明版如下:
-t : 指明權顯示TCP埠
-u : 指明顯示UDP埠
-l : 僅顯示監聽套接字(所謂套接字就是使應用程序能夠讀寫與收發通訊協議(protocol)與資料的程序)
-p : 顯示進程標識符和程序名稱,每一個套接字/埠都屬於一個程序。
-n : 不進行DNS輪詢,顯示IP(可以加速操作)
即可顯示當前伺服器上所有埠及進程服務,於grep結合可查看某個具體埠及服務情況。
netstat -ntlp //查看當前所有tcp埠。
netstat -ntulp |grep 80 //查看所有80埠使用情況。
netstat -an | grep 3306 //查看所有3306埠使用情況。
例如要查看當前Mysql默認埠3702是否啟動可以做如下操作

Ⅱ 如何查看linux網口配置

通常需要以root身份登錄或使用sudo以便在Linux機器上使用ifconfig工具。依賴於ifconfig命令中使用一些選項屬性,ifconfig工具不僅可以被用來簡單地獲取網路介面配置信息,還可以修改這些配置。
1.命令格式:
ifconfig [網路設備] [參數]
2.命令功能:
ifconfig 命令用來查看和配置網路設備。當網路環境發生改變時可通過此命令對網路進行相應的配置。
3.命令參數:
up 啟動指定網路設備/網卡。
down 關閉指定網路設備/網卡。該參數可以有效地阻止通過指定介面的IP信息流,如果想永久地關閉一個介面,我們還需要從核心路由表中將該介面的路由信息全部刪除。
arp 設置指定網卡是否支持ARP協議。
-promisc 設置是否支持網卡的promiscuous模式,如果選擇此參數,網卡將接收網路中發給它所有的數據包
-allmulti 設置是否支持多播模式,如果選擇此參數,網卡將接收網路中所有的多播數據包
-a 顯示全部介面信息
-s 顯示摘要信息(類似於 netstat -i)
add 給指定網卡配置IPv6地址
del 刪除指定網卡的IPv6地址
<硬體地址> 配置網卡最大的傳輸單元
mtu<位元組數> 設置網卡的最大傳輸單元 (bytes)
netmask<子網掩碼> 設置網卡的子網掩碼。掩碼可以是有前綴0x的32位十六進制數,也可以是用點分開的4個十進制數。如果不打算將網路分成子網,可以不管這一選項;如果要使用子網,那麼請記住,網路中每一個系統必須有相同子網掩碼。
tunel 建立隧道
dstaddr 設定一個遠端地址,建立點對點通信
-broadcast<地址> 為指定網卡設置廣播協議
-pointtopoint<地址> 為網卡設置點對點通訊協議
multicast 為網卡設置組播標志
address 為網卡設置IPv4地址
txqueuelen<長度> 為網卡設置傳輸列隊的長度

Ⅲ Linux配置router查看介面信息

Router>enable 進入特權模式
Router#configure terminal 進入配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface e 0/0 進入介面以太0/0
Router(config-if)#ip
Router(config-if)#ip address 192.168.1.1 255.255.255.0 配置IP地址和子網掩碼
Router(config-if)#no shutdown 開啟埠
%LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
Router(config-if)#exit退出
Router(config)#ip host xiay 192.168.1.2默認域名指向(可以不配置的)
Router(config)#exit退出
Router#show interfaces e 0/0查看以太0/0信息
Ethernet0/0 is up, line protocol is up開啟埠
Hardware is Lance, address is 000C.4198.5973 (bia 000C.4198.5973)MAC地址
Internet address is 192.168.1.1/24IP和掩碼
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set, keepalive set (10 sec)
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of show interface counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 1000 bits/sec, 2 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out

Router#ping 192.168.1.2pingIP地址

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms通了
Router#ping xiayping 域名(就是剛才定向的那個)

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms通了

Router# startup-config tftp 拷貝我的配置文件到tftp
Address or name of remote host []?xiay拷貝到這(也可以輸入IP)
Destination filename []?1保存文件名
No NVRAM configuration present失敗

Router#
Router#show startup-config 檢查我的配置 沒有
%% Non-volatile configuration memory is not present
Router# running-config startup-config 把我ram上的配置到nvram上去
Destination filename [startup-config]?
Building configuration...
[OK]

Router#sh startup-config 再查看下 OK東西有了
Current configuration : 677 bytes

!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
!
!
ip subnet-zero
ip host xiay 192.168.1.2
!
!
!
!
!
!
!
!
!

Router# startup-config tftp 拷貝 同上
Address or name of remote host []?xiay
Destination filename []?1
!!!!!!!!!!成功了!!!!!!!
[OK]
8390 bytes copied in 7 secs
===================================

boson 行敲出來順便給你貼上去的 夠詳細了把 不加分對不起我啊

Ⅳ 在linux下 怎麼查看網路介面的名字

1、第一步在電腦上打開xshell,建立連接,輸入主機名,用戶名和密碼,如下圖所示:

2、第二步可以看到已經遠程連接到linux系統伺服器了,如下羨桐改圖所示:

3、第三步輸入「ifconfig-a」命令,來查看輪兄linux系統ip,如下圖所示:

4、第四步按回車鍵之後,可兄判以查看到linux系統的ip地址,在eth0的下方inet旁邊就是內網ip地址,如下圖所示:

5、第五步也可以看一下按回車鍵的信息,eth0是網卡名稱,lo是本地環回介面,netmask是本機掩碼,如下圖所示:

Ⅳ Linux操作系統為用戶提供了哪些介面

Linux系統提供三種介面:

1、圖形界面操作介面,Linux系統一般提供KDE、Gnome等圖形界面介面,目的是方便專普通用戶操屬作計算機。

2、控制台介面,即終端介面,Linux系統一般提供bash shell、cshell等等終端介面,目的是方便系統管理員操作計算機,事實上Linux功能的強大也主要體現在終端介面。

3、API介面:即apllication interface,這是應用程序介面,從編程角度Linux系統就是一個大的程序調用庫,它提供大量的API函數,目的是方便程序員開發應用程序。

Ⅵ 如何查看linux系統的網路介面

方法/步驟

1、進入linux,使用「 cat /etc/services 」命令,可以查看所有服務默認的端回口列表信息。答

閱讀全文

與linux介面信息相關的資料

熱點內容
遇見不安全網站怎麼辦 瀏覽:251
哪個app有慶余年電視劇 瀏覽:420
iphone5s視頻時很黑 瀏覽:601
js獲取埠號 瀏覽:347
手機短息發的鏈接病毒蘋果手機 瀏覽:724
win10專業忘記家庭組密碼 瀏覽:176
南寧applestore幾樓 瀏覽:296
java字元串怎麼初始化 瀏覽:349
醫美哪個app好 瀏覽:768
代碼編程和機器人編程哪個好 瀏覽:875
90版本男法 瀏覽:796
win10桌面字體難看 瀏覽:848
三菱fx5u支持哪些編程 瀏覽:7
優酷在文件夾在哪裡 瀏覽:91
趣列印的數據文件是什麼 瀏覽:871
linuxjava程序 瀏覽:483
蘋果6splus數據線圖片 瀏覽:98
蘋果官網數據如何恢復 瀏覽:251
spss怎麼拆分數據 瀏覽:306
photoshop復位所有工具 瀏覽:492

友情鏈接