中文字幕理论片,69视频免费在线观看,亚洲成人app,国产1级毛片,刘涛最大尺度戏视频,欧美亚洲美女视频,2021韩国美女仙女屋vip视频

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
Linux下一塊網(wǎng)卡設(shè)置多個(gè)IP地址
          在windows下給一塊網(wǎng)卡設(shè)置多個(gè)IP,是比較容易的,今天我寫(xiě)的內(nèi)容是關(guān)于在LINUX系統(tǒng)下,給一塊網(wǎng)卡設(shè)置多個(gè)IP地址,在Linux系統(tǒng)下面,第一塊網(wǎng)卡就叫eth0,第二塊網(wǎng)卡就叫eth1,這里我們給第一塊網(wǎng)卡設(shè)置多個(gè)IP,在Linux下,配置網(wǎng)卡的配置文件在目錄/etc/sysconfig/network-script/下 ,原來(lái)網(wǎng)卡的配置文件名為ifcfg-eth0 ,我們給一塊網(wǎng)卡配置多個(gè)IP地址的配置文件命名為ifcfg-eth0:1和ifcfg-eth0 :2,下面看操作如下:
Last login: Fri Aug  6 00:35:49 2010 from 172.28.102.41
[root@rep1 ~]# ifconfig                             ###原來(lái)網(wǎng)卡的配置
eth0      Link encap:Ethernet  HWaddr 00:0C:29:D5:39:A0 
          inet addr:172.28.90.101  Bcast:172.28.255.255  Mask:255.255.0.0
          inet6 addr: fe80::20c:29ff:fed5:39a0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3125184 errors:0 dropped:0 overruns:0 frame:0
          TX packets:101356 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:462342976 (440.9 MiB)  TX bytes:10788008 (10.2 MiB)
          Interrupt:75 Base address:0x2000
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1427 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1427 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3335045 (3.1 MiB)  TX bytes:3335045 (3.1 MiB)
[root@rep1 ~]# cd /etc/sysconfig/net
netconsole       network          networking/      network-scripts/
[root@rep1 ~]# cd /etc/sysconfig/network-scripts/         #配置文件的目錄路徑
[root@rep1 network-scripts]# ls
ifcfg-eth0    ifdown-isdn    ifup-aliases  ifup-plip    ifup-wireless
ifcfg-lo      ifdown-post    ifup-bnep     ifup-plusb   init.ipv6-global
ifdown        ifdown-ppp     ifup-eth      ifup-post    net.hotplug
ifdown-bnep   ifdown-routes  ifup-ippp     ifup-ppp     network-functions
ifdown-eth    ifdown-sit     ifup-ipsec    ifup-routes  network-functions-ipv6
ifdown-ippp   ifdown-sl      ifup-ipv6     ifup-sit
ifdown-ipsec  ifdown-tunnel  ifup-ipx      ifup-sl
ifdown-ipv6   ifup           ifup-isdn     ifup-tunnel
[root@rep1 network-scripts]# cp ifcfg-eth0 ifcfg-eth0:1      #復(fù)制原來(lái)網(wǎng)卡配置
[root@rep1 network-scripts]# cp ifcfg-eth0 ifcfg-eth0:2     #復(fù)制原來(lái)網(wǎng)卡配置
[root@rep1 network-scripts]# vi ifcfg-eth0:1
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0:1                                        #此處修改
BOOTPROTO=static
BROADCAST=172.28.255.255              #IP地址的廣播地址
HWADDR=00:0C:29:D5:39:A0             #MAC地址,不用修改
IPADDR=172.28.90.201                         #設(shè)置新的IP
NETMASK=255.255.0.0
NETWORK=172.28.0.0
ONBOOT=yes
~
——————————————————————————————————
~
"ifcfg-eth0:1" 9L, 206C written
[root@rep1 network-scripts]# vi ifcfg-eth0:2
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0:2                                                #此處修改
BOOTPROTO=static
BROADCAST=172.28.255.255                    #IP地址的廣播地址
HWADDR=00:0C:29:D5:39:A0                    #MAC地址,不用修改
IPADDR=172.28.90.202                                 #設(shè)置新的IP
NETMASK=255.255.0.0
NETWORK=172.28.0.0
ONBOOT=yes
~
———————————————————————————————————
~
"ifcfg-eth0:2" 9L, 206C written
[root@rep1 network-scripts]# service network restart           #重啟下網(wǎng)絡(luò)服務(wù)
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]
[root@rep1 network-scripts]# ifconfig                             #修改好后驗(yàn)證是否成功
eth0      Link encap:Ethernet  HWaddr 00:0C:29:D5:39:A0 
          inet addr:172.28.90.101  Bcast:172.28.255.255  Mask:255.255.0.0
          inet6 addr: fe80::20c:29ff:fed5:39a0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3131096 errors:0 dropped:0 overruns:0 frame:0
          TX packets:101660 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:462925438 (441.4 MiB)  TX bytes:10829005 (10.3 MiB)
          Interrupt:75 Base address:0x2000
eth0:1    Link encap:Ethernet  HWaddr 00:0C:29:D5:39:A0 
          inet addr:172.28.90.201  Bcast:172.28.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:75 Base address:0x2000
eth0:2    Link encap:Ethernet  HWaddr 00:0C:29:D5:39:A0 
          inet addr:172.28.90.202  Bcast:172.28.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:75 Base address:0x2000
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1427 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1427 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3335045 (3.1 MiB)  TX bytes:3335045 (3.1 MiB)
[root@rep1 network-scripts]# ls
ifcfg-eth0
    ifdown-ipsec   ifdown-tunnel  ifup-ipx     ifup-sl
ifcfg-eth0:1  ifdown-ipv6    ifup           ifup-isdn    ifup-tunnel
ifcfg-eth0:2  ifdown-isdn    ifup-aliases   ifup-plip    ifup-wireless
ifcfg-lo      ifdown-post    ifup-bnep      ifup-plusb   init.ipv6-global
ifdown        ifdown-ppp     ifup-eth       ifup-post    net.hotplug
ifdown-bnep   ifdown-routes  ifup-ippp      ifup-ppp     network-functions
ifdown-eth    ifdown-sit     ifup-ipsec     ifup-routes  network-functions-ipv6
ifdown-ippp   ifdown-sl      ifup-ipv6      ifup-sit
[root@rep1 network-scripts]#
我們?cè)賥ind下驗(yàn)證下是否通。。。
C:\Documents and Settings\Administrator>ping 172.28.90.101
Pinging 172.28.90.101 with 32 bytes of data:
Reply from 172.28.90.101: bytes=32 time=17ms TTL=63
Reply from 172.28.90.101: bytes=32 time=14ms TTL=63
Ping statistics for 172.28.90.101:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 14ms, Maximum = 17ms, Average = 15ms
Control-C
^C
C:\Documents and Settings\Administrator>ping 172.28.90.201
Pinging 172.28.90.201 with 32 bytes of data:
Reply from 172.28.90.201: bytes=32 time=38ms TTL=63
Reply from 172.28.90.201: bytes=32 time=18ms TTL=63
Reply from 172.28.90.201: bytes=32 time=2ms TTL=63
Ping statistics for 172.28.90.201:
    Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 2ms, Maximum = 38ms, Average = 19ms
Control-C
^C
C:\Documents and Settings\Administrator>ping 172.28.90.202
Pinging 172.28.90.202 with 32 bytes of data:
Reply from 172.28.90.202: bytes=32 time=39ms TTL=63
Reply from 172.28.90.202: bytes=32 time=17ms TTL=63
Reply from 172.28.90.202: bytes=32 time=17ms TTL=63

本文出自 “你是路人甲還是霍元甲” 博客,請(qǐng)務(wù)必保留此出處http://world77.blog.51cto.com/414605/368529

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
F12無(wú)法上網(wǎng)! [論壇存檔]
linux 啟動(dòng)網(wǎng)卡
LINUX下的網(wǎng)絡(luò)設(shè)置 ifconfig ,route
CentOS 7 網(wǎng)絡(luò)配置
/etc/sysconfig/network
一張網(wǎng)卡配置一個(gè)以上的ip
更多類似文章 >>
生活服務(wù)
熱點(diǎn)新聞
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服