SSブログ

ネットワーク設定

インターネットに繋がるようにネットワークの設定をする。

ネットワークカードが2つあるのでbondingを利用して負荷分散できるように設定する。
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=xx:xx:xx:xx:xx:xx
TYPE=Ethernet
UUID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ONBOOT=yes
BOOTPROTO=none
IPV6INIT=no
USERCTL=no
MASTER=bond0
SLAVE=yes
NM_CONTROLLED=no
#リモート起動できるよう設定
ETHTOOL_OPTS="wol g"

#vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=xx:xx:xx:xx:xx:xx
TYPE=Ethernet
UUID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ONBOOT=yes
BOOTPROTO=none
IPV6INIT=no
USERCTL=no
MASTER=bond0
SLAVE=yes
NM_CONTROLLED=no

あとは/etc/sysconfig/network-scripts/ifcfg-bond0を作成する。
DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPV6INIT=no
USERCTL=no
#マシンのIPアドレス
IPADDR=192.168.x.x
#サブネットマスク
NETMASK=255.255.252.0(注意:記載しない場合は[255.255.255.0]となる)
#gatewayのアドレス
GATEWAY=192.168.x.x
#DNS1のアドレス(DNS設定後に社外用サーバのアドレスに変更)
DNS1=192.168.x.x
#DNS2のアドレス(DNS設定後に社内用サーバのアドレスに変更)
DNS2=192.168.x.x
BONDING_OPTS="mode=1 primary=eth0 miimon=500"
NM_CONTROLLED=no

#/etc/rc.d/init.d/network restartでネットワークの再起動を行う。
#ifconfigで確認する。
#chkconfig network on


遠隔起動できるように設定
#yum -y install ethtool

下記のコマンドを一回打つと、どうやっても取り消しができなくなるので注意が必要。
その場合NetworkManagerをオフに設定しないとネットワークがうまく起動しなくなる。
#ethtool -s eth0 wol g

NetworkManagerをオフにする。これをやらないと起動時にネットワークが上手く起動しない。特に遠隔起動を利用して起動した場合、networkの再起動をしないとインターネットに繋がらない。
#chkconfig NetworkManager off

後は、遠隔起動ができるようにWalkOnLanなどのソフトをダウンロードしてネットワーク設定は完了。
nice!(1)  コメント(2)  トラックバック(0) 
共通テーマ:パソコン・インターネット

nice! 1

コメント 2

Vallie

whoah thiѕ blog is wonderful і rеally ⅼike studying yoᥙr posts.

Stay up the gгeat work! You realize, lots of persons are looking around for tһis info, you can aid
them gгeatly.
by Vallie (2022-02-02 14:21) 

Harrison

І operate a vape shop directory site https://allcbdstores.com аnd we
have haⅾ a listing from a vape store іn tһe United States that additionally advertises CBD goods.
A Ꮇonth ɑfterwards, PayPal һaѕ ᴡritten to
usee to say tһat oᥙr account has bden restricted and havе ɑsked
us to take оut PayPal ɑs a payment solution fгom ourr vape stpre directory site.
Ꮃe do nnot offer ffor sale CBD items ѕuch as CBD oil.We mеrely offter marketing professional services tо CBD firms.
I have loοked int᧐ Holland & Barrett-- tһe UK's Toρ Health Merchant and if
you take а good peek, yoᥙ wilⅼ ѕee thаt tһey promote a ѕomewhat extensive variety ߋf CBD goods, promarily
CBD oil and they also haρpen to accept PayPall ɑs a payment solution. It
emerges tһat PayPall is applying double standards t᧐ ⅾifferent companies.

Bеcause of this stipulation, Ӏ ccan no longer accept PayPaal on my CBD-гelated
site. Ƭhis has constricted my payment possibilities ɑnd presently, Ι am seriously contingent on Cryptocurrency payments and straightforward bank transfers.
І һave consulted а barrister frim а Magic Circle
law firm іn The city of london ɑnd theʏ explained thаt wһat
PayPal is dоing is altogether illegal аnd inequitable ass it ougһt to be
applying a consistent benchmark tо all firms. I am yet to check wіth another legal representative fгom a
US law firm inn London t᧐ ѕee what PayPal's legal posirion іs іn thе United States.
Meanwһile, I wоuld be veгy appreciative іf anyone hedre at ss-blog.jp could provide me ᴡith alternative payment processors/merchants tһɑt wоrk witһ CBD firms.
by Harrison (2022-03-15 22:53) 

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 0

-|メールサーバー設定 ブログトップ

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。