質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Q&A

解決済

2回答

511閲覧

サーバのネットワーク接続方法

JanTh1989

総合スコア87

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

0グッド

0クリップ

投稿2022/05/08 10:12

発端はyum updateで以下が出たところからになります。

読み込んだプラグイン:fastestmirror, langpacks Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: HTTP Error 403 - Forbidden One of the configured repositories failed (不明), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Disable the repository, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable <repoid> 4. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

色々サイトを見ました。
ここでDNS設定を拝見し、設定ファイルを確認しました。
https://qiita.com/ponsuke0531/items/e036dfa4dd1e69086e13
DNS設定
https://qiita.com/ponsuke0531/items/7e69155e1a2258d444c9

ls /etc/sysconfig/network-scripts/ifcfg-*
/etc/sysconfig/network-scripts/ifcfg-eno16780032 /etc/sysconfig/network-scripts/ifcfg-lo

この結果のファイルを確認すると以下でした。

cat /etc/sysconfig/network-scripts/ifcfg-eno16780032 TYPE=Ethernet BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=eno16780032 UUID=c0f51141-92d7-480c-8348-0b48affb91d6 DEVICE=eno16780032 ONBOOT=yes DNS1=XXX.XXX.XXX.X DNS2=XXX.XXX.XXX.X IPADDR=XXX.XX.X,XX PREFIX=24 GATEWAY=XXX.XX.X.XXX

DNSやGATEWAYの値は設定できている認識でおります。
そこでnetwork.serviceをrestartして、status確認した結果が以下です。

sudo systemctl restart network.service sudo systemctl status NetworkManager.service ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled) Active: inactive (dead)

Activeにならないです。

DNSやGATEWAYの設定IPの誤りを疑いました。
そこで、yum接続のできている別サーバの設定と同等で、設定しているIPへのPINGがいけるかを確認しましたが、同じになっていてPINGの可能でした。
他どこがActiveにならない要因になるのかと、yum接続ができない原因・解決をご教授願えないでしょうか。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

自己解決

ミラーの設定自体を見直しました。
そこのURLを切り替えたところ、無事動作しました。

投稿2022/11/14 00:19

JanTh1989

総合スコア87

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

HTTP Error 403 - Forbidden
ですからネットワークに問題はありません。
サーバーが403つまりそういうURLはない、というレスポンスです。

There are a few ways to work "fix" this:
とありますから、その下にある解決策案 をトライしてください

投稿2022/05/08 11:53

winterboum

総合スコア23284

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

JanTh1989

2022/05/09 11:47

ご回答ありがとうございます。 回答箇所を見てみます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問