CentOS 7 下網(wǎng)絡(luò)管理之命令行工具nmcli

在CentOS7中默認(rèn)使用NetworkManager守護(hù)進(jìn)程來監(jiān)控和管理網(wǎng)絡(luò)設(shè)置。nmcli是命令行的NetworkManager工具毕骡,會(huì)自動(dòng)把配置寫到/etc/sysconfig/network-scripts/目錄下面。

NetworkManager最初由 Redhat 公司開發(fā),現(xiàn)在由 GNOME 管理。

CentOS7之前的網(wǎng)絡(luò)管理是通過ifcfg文件配置管理接口(device),而現(xiàn)在是通過NetworkManager服務(wù)管理連接(connection)盟蚣。一個(gè)接口(device)可以有多個(gè)連接(connection),但是同時(shí)只允許一個(gè)連接(connection)處于激活(active)狀態(tài)卖怜。

簡單理解就是屎开,一個(gè)連接就是(connection)就是/etc/sysconfig/network-scripts/目錄下的一個(gè)配置文件,接口(device)是物理設(shè)備韧涨,一個(gè)物理設(shè)置可以擁有多個(gè)配置文件牍戚,但只能有一個(gè)配置文件屬于使用(active)狀態(tài);配置文件的生成與使用狀態(tài)均由NetworkManager控制虑粥。

當(dāng)然如孝,依舊支持ifcfg文件配置管理網(wǎng)絡(luò),但不推薦娩贷。

命令學(xué)習(xí)


查看幫助

[root@karate ~]# nmcli -h
Usage: nmcli [OPTIONS] OBJECT { COMMAND | help }

OPTIONS
  -t[erse]                                   terse output
  -p[retty]                                  pretty output
  -m[ode] tabular|multiline                  output mode
  -f[ields] <field1,field2,...>|all|common   specify fields to output
  -e[scape] yes|no                           escape columns separators in values
  -n[ocheck]                                 don't check nmcli and NetworkManager versions
  -a[sk]                                     ask for missing parameters
  -w[ait] <seconds>                          set timeout waiting for finishing operations
  -v[ersion]                                 show program version
  -h[elp]                                    print this help

OBJECT
  g[eneral]       NetworkManager's general status and operations
  n[etworking]    overall networking control
  r[adio]         NetworkManager radio switches
  c[onnection]    NetworkManager's connections
  d[evice]        devices managed by NetworkManager
  a[gent]         NetworkManager secret agent or polkit agent

有六個(gè)OBJECT第晰,常用的有connection,device彬祖,general查看它們的幫助

[root@karate ~]# nmcli c -h
Usage: nmcli connection { COMMAND | help }

COMMAND := { show | up | down | add | modify | edit | delete | reload | load }

  show [--active] [[--show-secrets] [id | uuid | path | apath] <ID>] ...

  up [[id | uuid | path] <ID>] [ifname <ifname>] [ap <BSSID>] [passwd-file <file with passwords>]

  down [id | uuid | path | apath] <ID> ...

  add COMMON_OPTIONS TYPE_SPECIFIC_OPTIONS IP_OPTIONS

  modify [--temporary] [id | uuid | path] <ID> ([+|-]<setting>.<property> <value>)+

  edit [id | uuid | path] <ID>
  edit [type <new_con_type>] [con-name <new_con_name>]

  delete [id | uuid | path] <ID>

  reload

  load <filename> [ <filename>... ]

常用命令


查看接口設(shè)備信息

# 簡單信息
nmcli device status
# 詳細(xì)的接口信息
nmcli device show
# 接口的詳細(xì)信息
nmcli device show interface-name

查看連接(connection)的信息

# 簡單信息
nmcli connection show
# 詳細(xì)的連接信息
nmcli connection show
# 某個(gè)連接的詳細(xì)信息
nmcli connection show connection-name

啟動(dòng)和停止接口

nmcli connection down connection-name
nmcli connection up connection-name
nmcli device disconnect interface-name
nmcli device connect interface-name

建議使用 nmcli dev disconnect interface-name 命令茁瘦,而不是 nmcli con down connection-name 命令,因?yàn)檫B接斷開可將該接口放到“手動(dòng)”模式储笑,這樣做用戶讓 NetworkManager 啟動(dòng)某個(gè)連接前甜熔,或發(fā)生外部事件(比如載波變化、休眠或睡眠)前突倍,不會(huì)啟動(dòng)任何自動(dòng)連接腔稀。

創(chuàng)建連接

nmcli connection add type ethernet con-name connection-name ifname interface-name
nmcli connection add type ethernet con-name connection-name ifname interface-name ip4 address gw4 address

## e.g. 創(chuàng)建一個(gè)基于eth1接口的連接
# 創(chuàng)建動(dòng)態(tài)連接,即BOOTPROTO默認(rèn)為DHCP
[root@localhost ~]# nmcli c add type eth con-name dynamic-eth1 ifname eth1
Connection 'dynamic-eth1' (9c0ad8a9-21f6-40b5-9313-e5c7e4b356f1) successfully added.
# 創(chuàng)建靜態(tài)連接
[root@localhost ~]# nmcli connection add type eth con-name static-eth1 ifname eth1 ip4 172.16.60.10/24
# nmcli connection add type eth con-name static-eth1 ifname eth1 ip4 172.16.60.10/24 gw4 192.168.60.1
Connection 'static-eth1' (0640bf7f-9490-44a8-be96-2e710fb650e6) successfully added.

創(chuàng)建連接后羽历,NetworkManager 自動(dòng)將 connection.autoconnect 設(shè)定為 yes焊虏。還會(huì)將設(shè)置保存到 /etc/sysconfig/network-scripts/ connection-name 文件中,且自動(dòng)將 ONBOOT 參數(shù)設(shè)定為 yes秕磷。

激活連接

nmcli connection up connection-name

## e.g. 激活eth1接口的static-eth1連接
[root@localhost ~]# nmcli c up static-eth1
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/2)

修改連接的IP地址

# 可修改的屬性可通過以下命令查看
nmcli c show static-eth1
# 修改命令
nmcli connection modify [--temporary] [id | uuid | path] <ID> ([+|-]<setting>.<property> <value>)+

## e.g. 修改連接static-eth1的ip地址
[root@localhost ~]# ip addr | grep eth1
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    inet 172.16.60.10/24 brd 172.16.60.255 scope global eth1
[root@localhost ~]# nmcli c mod static-eth1 ipv4.addr 172.16.60.20/24
[root@localhost ~]# nmcli c up static-eth1
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3)
[root@localhost ~]# ip a | grep eth1
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    inet 172.16.60.20/24 brd 172.16.60.255 scope global eth1

配置連接的DNS

# 設(shè)定單個(gè)DNS
nmcli connection modify static-eth1 ipv4.dns DNS1
# 設(shè)定多個(gè)DNS
nmcli connection modify static-eth1 ipv4.dns "DNS1 DNS2"
# 以上命令會(huì)替換之前的DNS設(shè)置
# 添加某個(gè)連接的DNS诵闭,需要使用前綴“+”
nmcli connection modify static-eth1 +ipv4.dns DNS3

## e.g. 配置static-eth1連接的DNS
[root@localhost ~]# grep DNS /etc/sysconfig/network-scripts/ifcfg-static-eth1
IPV6_PEERDNS=yes
[root@localhost ~]# nmcli c mod static-eth1 ipv4.dns "114.114.114.114 223.5.5.5"
# 修改連接后,需要重新激活
[root@localhost ~]# nmcli c up static-eth1
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/4)
[root@localhost ~]# grep DNS /etc/sysconfig/network-scripts/ifcfg-static-eth1
DNS1=114.114.114.114
DNS2=223.5.5.5
IPV6_PEERDNS=yes
# 新增DNS
[root@localhost ~]# nmcli c mod static-eth1 +ipv4.dns 223.5.5.6
[root@localhost ~]# nmcli c up static-eth1
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)
[root@localhost ~]# grep DNS /etc/sysconfig/network-scripts/ifcfg-static-eth1
DNS1=114.114.114.114
DNS2=223.5.5.5
DNS3=223.5.5.6
IPV6_PEERDNS=yes

設(shè)置主機(jī)名

# 查詢當(dāng)前主機(jī)名
nmcli general hostname
# 更改主機(jī)名
nmcli general hostname my-hostname
# 重啟hostnamed服務(wù)
systemctl restart systemd-hostnamed

CentOS7下的主機(jī)名管理是基于系統(tǒng)服務(wù)systemd-hostnamed,服務(wù)自身提供了hostnamectl命令用于修改主機(jī)名疏尿,推薦這種方式進(jìn)行修改瘟芝;
使用nmcli命令更改主機(jī)名時(shí),systemd-hostnamed服務(wù)并不知曉 /etc/hostname 文件被修改润歉,因此需要重啟服務(wù)去讀取配置模狭;

命令交互模式

nmcli con edit
# Valid connection types: generic, 802-3-ethernet (ethernet), pppoe, 802-11-wireless (wifi), wimax, gsm, cdma, infiniband, adsl, bluetooth, vpn, 802-11-olpc-mesh (olpc-mesh), vlan, bond, team, bridge, bond-slave, team-slave, bridge-slave
# 也可以直接指定connection-name進(jìn)行交互修改
# 還是非交互配置方便

接口綁定(interface bonding)

CentOS7下新增了一種特性team,用于取代bond踩衩。

接口綁定步驟是:創(chuàng)建一個(gè)組接口(Team interface), 創(chuàng)建一個(gè)接口連接嚼鹉,指定網(wǎng)卡接口(device)到組接口里

nmcli connection add type team con-name connection-name ifname interface-name [config JSON]
# JSON  指定所使用的處理器(runner)。JSON語法 '{"runner":{"name":"METHOD"}}' 
# METHOD可以是:broadcast驱富、activebackup锚赤、roundrobin、loadbalance 或者 lacp
nmcli connection add type team-slave con-name connection-name ifname interface-name master team-name

## e.g. 創(chuàng)建組接口team0褐鸥,并把eth1和eth2加入其中线脚,網(wǎng)段為192.168.233.0/24
[root@localhost ~]# nmcli d status
DEVICE  TYPE      STATE      CONNECTION
eth0    ethernet  connected  eth0
eth1    ethernet  connected  Wired connection 1
eth2    ethernet  connected  Wired connection 2
lo      loopback  unmanaged  --
[root@localhost ~]# nmcli c show
NAME                UUID                                  TYPE            DEVICE
Wired connection 2  34494b9d-f056-4f30-841c-7e6fad3b73d0  802-3-ethernet  eth2
Wired connection 1  b7ca472c-67f7-4885-ba3b-1b572d3e0d40  802-3-ethernet  eth1
eth0                54bd03bd-1300-409b-974f-d98ed3bb8891  802-3-ethernet  eth0
[root@localhost ~]# nmcli c del "Wired connection 2"
[root@localhost ~]# nmcli c del "Wired connection 1"
[root@localhost ~]# nmcli c show
NAME  UUID                                  TYPE            DEVICE
eth0  54bd03bd-1300-409b-974f-d98ed3bb8891  802-3-ethernet  eth0
[root@localhost ~]# nmcli d status
DEVICE  TYPE      STATE         CONNECTION
eth0    ethernet  connected     eth0
eth1    ethernet  disconnected  --
eth2    ethernet  disconnected  --
lo      loopback  unmanaged     --

# 創(chuàng)建組接口,并分配ip地址
[root@localhost ~]# nmcli c add type team con-name team0 ifname team0 config '{"runner":{"name":"activebackup"}}' ip4 192.168.233.10/24 gw4 192.168.233.2
Connection 'team0' (4e75c1da-6ce5-4cbc-85fe-da5aa289b7d8) successfully added.
[root@localhost ~]# nmcli c mod team0 ipv4.dns "114.114.114.114 223.5.5.5"
[root@localhost ~]# nmcli c show
NAME   UUID                                  TYPE            DEVICE
eth0   54bd03bd-1300-409b-974f-d98ed3bb8891  802-3-ethernet  eth0
team0  4e75c1da-6ce5-4cbc-85fe-da5aa289b7d8  team            team0

# 將網(wǎng)卡接口加入到組接口中
[root@localhost ~]# nmcli c add type team-slave ifname eth1 master team0
Connection 'team-slave-eth1' (3ef0011b-6b69-4dfb-998b-13bf3d729c9c) successfully added.
[root@localhost ~]# nmcli c add type team-slave ifname eth2 master team0
Connection 'team-slave-eth2' (fe3fc939-dbff-485e-aef6-9fbf9f807926) successfully added.

# 啟動(dòng)組接口
[root@localhost ~]# nmcli c up team0
Connection successfully activated (master waiting for slaves) (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)

# 查看 team0 當(dāng)前活動(dòng)的端口叫榕,活動(dòng)端口基于接口的連接
[root@localhost ~]# teamnl team0 ports
 4: eth2: up 1000Mbit FD
 3: eth1: up 1000Mbit FD
[root@localhost ~]# nmcli d status
DEVICE  TYPE      STATE      CONNECTION
eth0    ethernet  connected  eth0
eth1    ethernet  connected  team-slave-eth1
eth2    ethernet  connected  team-slave-eth2
team0   team      connected  team0
lo      loopback  unmanaged  --
[root@localhost ~]# nmcli c show
NAME             UUID                                  TYPE            DEVICE
eth0             54bd03bd-1300-409b-974f-d98ed3bb8891  802-3-ethernet  eth0
team-slave-eth2  fe3fc939-dbff-485e-aef6-9fbf9f807926  802-3-ethernet  eth2
team-slave-eth1  3ef0011b-6b69-4dfb-998b-13bf3d729c9c  802-3-ethernet  eth1
team0            4e75c1da-6ce5-4cbc-85fe-da5aa289b7d8  team            team0
[root@localhost ~]# ip a s team0
5: team0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether 00:0c:29:d0:a2:77 brd ff:ff:ff:ff:ff:ff
    inet 192.168.233.10/24 brd 192.168.233.255 scope global team0
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fed0:a277/64 scope link
       valid_lft forever preferred_lft forever
[root@localhost ~]# teamdctl team0 state
setup:
  runner: activebackup
ports:
  eth2
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
  eth1
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
runner:
  active port: eth1
[root@localhost ~]# nmcli c show team0
connection.id:                          team0
connection.uuid:                        4e75c1da-6ce5-4cbc-85fe-da5aa289b7d8
connection.interface-name:              team0
connection.type:                        team
connection.autoconnect:                 yes
connection.autoconnect-priority:        0
connection.timestamp:                   1464621245
connection.read-only:                   no
connection.permissions:
connection.zone:                        --
connection.master:                      --
connection.slave-type:                  --
connection.secondaries:
connection.gateway-ping-timeout:        0
ipv4.method:                            manual
ipv4.dns:                               114.114.114.114,223.5.5.5
ipv4.dns-search:
ipv4.addresses:                         192.168.233.10/24
ipv4.gateway:                           192.168.233.2
ipv4.routes:
ipv4.route-metric:                      -1
ipv4.ignore-auto-routes:                no
ipv4.ignore-auto-dns:                   no
ipv4.dhcp-client-id:                    --
ipv4.dhcp-send-hostname:                yes
ipv4.dhcp-hostname:                     --
ipv4.never-default:                     no
ipv4.may-fail:                          yes
ipv6.method:                            auto
ipv6.dns:
ipv6.dns-search:
ipv6.addresses:
ipv6.gateway:                           --
ipv6.routes:
ipv6.route-metric:                      -1
ipv6.ignore-auto-routes:                no
ipv6.ignore-auto-dns:                   no
ipv6.never-default:                     no
ipv6.may-fail:                          yes
ipv6.ip6-privacy:                       -1 (unknown)
ipv6.dhcp-send-hostname:                yes
ipv6.dhcp-hostname:                     --
team.config:                            {"runner":{"name":"activebackup"}}
GENERAL.NAME:                           team0
GENERAL.UUID:                           4e75c1da-6ce5-4cbc-85fe-da5aa289b7d8
GENERAL.DEVICES:                        team0
GENERAL.STATE:                          activated
GENERAL.DEFAULT:                        no
GENERAL.DEFAULT6:                       no
GENERAL.VPN:                            no
GENERAL.ZONE:                           --
GENERAL.DBUS-PATH:                      /org/freedesktop/NetworkManager/ActiveConnection/6
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/Settings/3
GENERAL.SPEC-OBJECT:                    /
GENERAL.MASTER-PATH:                    --
IP4.ADDRESS[1]:                         192.168.233.10/24
IP4.GATEWAY:                            192.168.233.2
IP4.DNS[1]:                             114.114.114.114
IP4.DNS[2]:                             223.5.5.5
IP6.ADDRESS[1]:                         fe80::20c:29ff:fed0:a277/64

測試的話浑侥,可以開個(gè)ping窗口持續(xù)ping,然后禁用team0組中的eth2晰绎;理論上ping包是不會(huì)丟失的寓落。

# 關(guān)閉eth2網(wǎng)卡,看ping狀態(tài)
[root@localhost ~]# nmcli d dis eth2
Device 'eth2' successfully disconnected.
[root@localhost ~]# teamdctl team0 state
setup:
  runner: activebackup
ports:
  eth1
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
runner:
  active port: eth1
[root@localhost ~]# nmcli d con eth2
Device 'eth2' successfully activated with 'fe3fc939-dbff-485e-aef6-9fbf9f807926'.
[root@localhost ~]# teamdctl team0 state
setup:
  runner: activebackup
ports:
  eth1
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
  eth2
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
runner:
  active port: eth1
[root@localhost ~]# teamnl team0 options
 queue_id (port:eth2) 0
 priority (port:eth2) 0
 user_linkup_enabled (port:eth2) false
 user_linkup (port:eth2) true
 enabled (port:eth2) false
 queue_id (port:eth1) 0
 priority (port:eth1) 0
 user_linkup_enabled (port:eth1) false
 user_linkup (port:eth1) true
 enabled (port:eth1) true
 activeport 3
 mcast_rejoin_interval 0
 mcast_rejoin_count 1
 notify_peers_interval 0
 notify_peers_count 1
 mode activebackup
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末荞下,一起剝皮案震驚了整個(gè)濱河市伶选,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌尖昏,老刑警劉巖仰税,帶你破解...
    沈念sama閱讀 216,402評論 6 499
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異抽诉,居然都是意外死亡陨簇,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,377評論 3 392
  • 文/潘曉璐 我一進(jìn)店門迹淌,熙熙樓的掌柜王于貴愁眉苦臉地迎上來河绽,“玉大人,你說我怎么就攤上這事巍沙。” “怎么了荷鼠?”我有些...
    開封第一講書人閱讀 162,483評論 0 353
  • 文/不壞的土叔 我叫張陵句携,是天一觀的道長。 經(jīng)常有香客問我允乐,道長矮嫉,這世上最難降的妖魔是什么削咆? 我笑而不...
    開封第一講書人閱讀 58,165評論 1 292
  • 正文 為了忘掉前任,我火速辦了婚禮蠢笋,結(jié)果婚禮上拨齐,老公的妹妹穿的比我還像新娘。我一直安慰自己昨寞,他們只是感情好瞻惋,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,176評論 6 388
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著援岩,像睡著了一般歼狼。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上享怀,一...
    開封第一講書人閱讀 51,146評論 1 297
  • 那天羽峰,我揣著相機(jī)與錄音,去河邊找鬼添瓷。 笑死梅屉,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的鳞贷。 我是一名探鬼主播坯汤,決...
    沈念sama閱讀 40,032評論 3 417
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼悄晃!你這毒婦竟也來了玫霎?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 38,896評論 0 274
  • 序言:老撾萬榮一對情侶失蹤妈橄,失蹤者是張志新(化名)和其女友劉穎庶近,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體眷蚓,經(jīng)...
    沈念sama閱讀 45,311評論 1 310
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡鼻种,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,536評論 2 332
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了沙热。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片叉钥。...
    茶點(diǎn)故事閱讀 39,696評論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖篙贸,靈堂內(nèi)的尸體忽然破棺而出敷鸦,到底是詐尸還是另有隱情,我是刑警寧澤扒披,帶...
    沈念sama閱讀 35,413評論 5 343
  • 正文 年R本政府宣布,位于F島的核電站辆亏,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜兵迅,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,008評論 3 325
  • 文/蒙蒙 一扯夭、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦置森、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,659評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽收擦。三九已至泪勒,卻和暖如春仇哆,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背陌兑。 一陣腳步聲響...
    開封第一講書人閱讀 32,815評論 1 269
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人贰镣。 一個(gè)月前我還...
    沈念sama閱讀 47,698評論 2 368
  • 正文 我出身青樓休玩,卻偏偏與公主長得像,于是被迫代替她去往敵國和親劫狠。 傳聞我的和親對象是個(gè)殘疾皇子拴疤,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,592評論 2 353

推薦閱讀更多精彩內(nèi)容

  • CentOS 6之前呐矾,網(wǎng)絡(luò)接口使用連續(xù)號碼命名:eth0、eth1等,當(dāng) 增加或刪除網(wǎng)卡時(shí),名稱可能會(huì)發(fā)生變化 ?...
    楠人幫閱讀 763評論 0 0
  • 多網(wǎng)卡同IP技術(shù) 將多個(gè)網(wǎng)卡端口綁定為一個(gè)微服,可以提升網(wǎng)絡(luò)的性能趾疚。在linux系統(tǒng)上有兩種技術(shù)可以實(shí)現(xiàn),Linux ...
    geekdeedy閱讀 10,414評論 0 4
  • IP協(xié)議IP地址路由以蕴、DHCP網(wǎng)絡(luò)配置 一赡磅、IP協(xié)議 (一)IP協(xié)議的特征: 運(yùn)行于OSI的網(wǎng)絡(luò)層 面向無連接的協(xié)...
    哈嘍別樣閱讀 727評論 0 0
  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn)宝与,斷路器焚廊,智...
    卡卡羅2017閱讀 134,651評論 18 139
  • CentOS7下Firewall防火墻配置用法詳解 centos 7中防火墻是一個(gè)非常的強(qiáng)大的功能了冶匹,但對于cen...
    很少更新了閱讀 5,689評論 0 9