CentOS 7 : ip addresses in ifconfig and in network-script are differentConfigure Atheros AR9285 wireless in...
Negative Resistance
A Paper Record is What I Hamper
Can a level 2 Warlock take one level in rogue, then continue advancing as a warlock?
Check if a string is entirely made of the same substring
Contradiction proof for inequality of P and NP?
Should the Product Owner dictate what info the UI needs to display?
How much cash can I safely carry into the USA and avoid civil forfeiture?
Is there really no use for MD5 anymore?
Was Dennis Ritchie being too modest in this quote about C and Pascal?
Multiple options vs single option UI
What makes accurate emulation of old systems a difficult task?
Drawing a german abacus as in the books of Adam Ries
Multiple fireplaces in an apartment building?
Will I lose my paid in full property
Is there a word for the censored part of a video?
Do I need to watch Ant-Man and the Wasp and Captain Marvel before watching Avengers: Endgame?
How can I practically buy stocks?
How bug prioritization works in agile projects vs non agile
Creating a chemical industry from a medieval tech level without petroleum
Is Electric Central Heating worth it if using Solar Panels?
What is the best way to deal with NPC-NPC combat?
Mistake in years of experience in resume?
How important is it that $TERM is correct?
How do I check if a string is entirely made of the same substring?
CentOS 7 : ip addresses in ifconfig and in network-script are different
Configure Atheros AR9285 wireless in Gentoo802.3ad on FreeBSD and Linux using crossover cables?Cannot connect to network in fedora 19Using ip addr instead of ifconfig reports “RTNETLINK answers: File exists” on DebianFTP not happening on RHEL 6 Server configured using a Vm Player 11Cannot make ipv6 ULA addresses workHow to make ifcfg script “run” the exact commands I need?ifconfig shows the interface but no IPDirect connection Centos7 (loadbalance) to QNAP (trunk)CentOS 7 Static Routing
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Given the CentOS server-like machine:
$ uname -a
Linux labsm 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
EDIT
My initial problem was that local network is Ok, but internet was not accessible. It appeared that my machine was blocked by mac-address. Now I get my mac-address in the list of the ones allowed internet access and everything is working.
However, I have one more question about the network. The IP address in ifconfig doesn't match the one in the network-script.
I did disable the NetworkManager and configure the network-script, so that the machine has the IP address 133.21.224.237
.
The network-script is:
{enp96s0f1}
$vi /etc/sysconfig/network-scripts/ifcfg-Wired_connection_1
HWADDR=0C:C4:7A:F9:BA:CF
MACADDR=0C:C4:7A:F9:BA:CF
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp96s0f1
UUID=ef4dba55-7c9a-3d8e-94b6-5e2146284e1a
ONBOOT=yes
AUTOCONNECT_PRIORITY=-999
IPADDR=133.21.224.237
PREFIX=24
GATEWAY=133.21.224.94
DNS1=10.20.0.55
DNS2=10.20.0.56
PEERDNS=no
I did restart the network service with
$ systemctl restart network
But! In the ifconfig:
enp96s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 133.21.224.29 netmask 255.255.255.0 broadcast 133.21.224.255
inet6 fe80::ec4:7aff:fef9:bacf prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:f9:ba:cf txqueuelen 1000 (Ethernet)
RX packets 2186987 bytes 459109170 (437.8 MiB)
RX errors 0 dropped 423238 overruns 0 frame 0
TX packets 56064 bytes 6389505 (6.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
So, the line inet 133.21.224.29
says that the ip address ends with 29, while I configured it 237 in the network-script. Even more interestingly, the machine can be accessed inside the local network by ssh with both IP addresses...
That IP address 133.21.224.29
was assigned to that machine some time before. But I don't understand how the machine receives it now, after I changed the network-script. What am I missing?
centos networking internet lan networksetup
|
show 2 more comments
Given the CentOS server-like machine:
$ uname -a
Linux labsm 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
EDIT
My initial problem was that local network is Ok, but internet was not accessible. It appeared that my machine was blocked by mac-address. Now I get my mac-address in the list of the ones allowed internet access and everything is working.
However, I have one more question about the network. The IP address in ifconfig doesn't match the one in the network-script.
I did disable the NetworkManager and configure the network-script, so that the machine has the IP address 133.21.224.237
.
The network-script is:
{enp96s0f1}
$vi /etc/sysconfig/network-scripts/ifcfg-Wired_connection_1
HWADDR=0C:C4:7A:F9:BA:CF
MACADDR=0C:C4:7A:F9:BA:CF
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp96s0f1
UUID=ef4dba55-7c9a-3d8e-94b6-5e2146284e1a
ONBOOT=yes
AUTOCONNECT_PRIORITY=-999
IPADDR=133.21.224.237
PREFIX=24
GATEWAY=133.21.224.94
DNS1=10.20.0.55
DNS2=10.20.0.56
PEERDNS=no
I did restart the network service with
$ systemctl restart network
But! In the ifconfig:
enp96s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 133.21.224.29 netmask 255.255.255.0 broadcast 133.21.224.255
inet6 fe80::ec4:7aff:fef9:bacf prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:f9:ba:cf txqueuelen 1000 (Ethernet)
RX packets 2186987 bytes 459109170 (437.8 MiB)
RX errors 0 dropped 423238 overruns 0 frame 0
TX packets 56064 bytes 6389505 (6.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
So, the line inet 133.21.224.29
says that the ip address ends with 29, while I configured it 237 in the network-script. Even more interestingly, the machine can be accessed inside the local network by ssh with both IP addresses...
That IP address 133.21.224.29
was assigned to that machine some time before. But I don't understand how the machine receives it now, after I changed the network-script. What am I missing?
centos networking internet lan networksetup
Are you working for Toyota in Japan?
– ctrl-alt-delor
Apr 16 at 8:58
The first odd thing I see (though I don't think it will break anything) is 3 network adaptors connected to the same network.
– ctrl-alt-delor
Apr 16 at 9:02
I am indeed working in Japan. All adaptors are on the same motherboard, that is a feature of it. So, I think they all should be connected to the same network. Anyway, I need only one, so if there is a way to disable others - tell me!
– Ivan Lobzenko
Apr 16 at 9:15
By the way, can you briefly tell me how do you know my location from the data I shared?
– Ivan Lobzenko
Apr 16 at 9:18
I was checking that you were not using someone else's (Toyota Japan) IP address (as this could cause network problems). You have multiple adaptors, so that you can connect them to different networks. To disable two of them, unplug them. I up-voted, and see no reason for a down-vote. By the way, do you have DHCP on your network, it will help a lot.
– ctrl-alt-delor
Apr 16 at 9:42
|
show 2 more comments
Given the CentOS server-like machine:
$ uname -a
Linux labsm 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
EDIT
My initial problem was that local network is Ok, but internet was not accessible. It appeared that my machine was blocked by mac-address. Now I get my mac-address in the list of the ones allowed internet access and everything is working.
However, I have one more question about the network. The IP address in ifconfig doesn't match the one in the network-script.
I did disable the NetworkManager and configure the network-script, so that the machine has the IP address 133.21.224.237
.
The network-script is:
{enp96s0f1}
$vi /etc/sysconfig/network-scripts/ifcfg-Wired_connection_1
HWADDR=0C:C4:7A:F9:BA:CF
MACADDR=0C:C4:7A:F9:BA:CF
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp96s0f1
UUID=ef4dba55-7c9a-3d8e-94b6-5e2146284e1a
ONBOOT=yes
AUTOCONNECT_PRIORITY=-999
IPADDR=133.21.224.237
PREFIX=24
GATEWAY=133.21.224.94
DNS1=10.20.0.55
DNS2=10.20.0.56
PEERDNS=no
I did restart the network service with
$ systemctl restart network
But! In the ifconfig:
enp96s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 133.21.224.29 netmask 255.255.255.0 broadcast 133.21.224.255
inet6 fe80::ec4:7aff:fef9:bacf prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:f9:ba:cf txqueuelen 1000 (Ethernet)
RX packets 2186987 bytes 459109170 (437.8 MiB)
RX errors 0 dropped 423238 overruns 0 frame 0
TX packets 56064 bytes 6389505 (6.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
So, the line inet 133.21.224.29
says that the ip address ends with 29, while I configured it 237 in the network-script. Even more interestingly, the machine can be accessed inside the local network by ssh with both IP addresses...
That IP address 133.21.224.29
was assigned to that machine some time before. But I don't understand how the machine receives it now, after I changed the network-script. What am I missing?
centos networking internet lan networksetup
Given the CentOS server-like machine:
$ uname -a
Linux labsm 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
EDIT
My initial problem was that local network is Ok, but internet was not accessible. It appeared that my machine was blocked by mac-address. Now I get my mac-address in the list of the ones allowed internet access and everything is working.
However, I have one more question about the network. The IP address in ifconfig doesn't match the one in the network-script.
I did disable the NetworkManager and configure the network-script, so that the machine has the IP address 133.21.224.237
.
The network-script is:
{enp96s0f1}
$vi /etc/sysconfig/network-scripts/ifcfg-Wired_connection_1
HWADDR=0C:C4:7A:F9:BA:CF
MACADDR=0C:C4:7A:F9:BA:CF
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp96s0f1
UUID=ef4dba55-7c9a-3d8e-94b6-5e2146284e1a
ONBOOT=yes
AUTOCONNECT_PRIORITY=-999
IPADDR=133.21.224.237
PREFIX=24
GATEWAY=133.21.224.94
DNS1=10.20.0.55
DNS2=10.20.0.56
PEERDNS=no
I did restart the network service with
$ systemctl restart network
But! In the ifconfig:
enp96s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 133.21.224.29 netmask 255.255.255.0 broadcast 133.21.224.255
inet6 fe80::ec4:7aff:fef9:bacf prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:f9:ba:cf txqueuelen 1000 (Ethernet)
RX packets 2186987 bytes 459109170 (437.8 MiB)
RX errors 0 dropped 423238 overruns 0 frame 0
TX packets 56064 bytes 6389505 (6.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
So, the line inet 133.21.224.29
says that the ip address ends with 29, while I configured it 237 in the network-script. Even more interestingly, the machine can be accessed inside the local network by ssh with both IP addresses...
That IP address 133.21.224.29
was assigned to that machine some time before. But I don't understand how the machine receives it now, after I changed the network-script. What am I missing?
centos networking internet lan networksetup
centos networking internet lan networksetup
edited 6 mins ago
Ivan Lobzenko
asked Apr 16 at 7:41
Ivan LobzenkoIvan Lobzenko
143
143
Are you working for Toyota in Japan?
– ctrl-alt-delor
Apr 16 at 8:58
The first odd thing I see (though I don't think it will break anything) is 3 network adaptors connected to the same network.
– ctrl-alt-delor
Apr 16 at 9:02
I am indeed working in Japan. All adaptors are on the same motherboard, that is a feature of it. So, I think they all should be connected to the same network. Anyway, I need only one, so if there is a way to disable others - tell me!
– Ivan Lobzenko
Apr 16 at 9:15
By the way, can you briefly tell me how do you know my location from the data I shared?
– Ivan Lobzenko
Apr 16 at 9:18
I was checking that you were not using someone else's (Toyota Japan) IP address (as this could cause network problems). You have multiple adaptors, so that you can connect them to different networks. To disable two of them, unplug them. I up-voted, and see no reason for a down-vote. By the way, do you have DHCP on your network, it will help a lot.
– ctrl-alt-delor
Apr 16 at 9:42
|
show 2 more comments
Are you working for Toyota in Japan?
– ctrl-alt-delor
Apr 16 at 8:58
The first odd thing I see (though I don't think it will break anything) is 3 network adaptors connected to the same network.
– ctrl-alt-delor
Apr 16 at 9:02
I am indeed working in Japan. All adaptors are on the same motherboard, that is a feature of it. So, I think they all should be connected to the same network. Anyway, I need only one, so if there is a way to disable others - tell me!
– Ivan Lobzenko
Apr 16 at 9:15
By the way, can you briefly tell me how do you know my location from the data I shared?
– Ivan Lobzenko
Apr 16 at 9:18
I was checking that you were not using someone else's (Toyota Japan) IP address (as this could cause network problems). You have multiple adaptors, so that you can connect them to different networks. To disable two of them, unplug them. I up-voted, and see no reason for a down-vote. By the way, do you have DHCP on your network, it will help a lot.
– ctrl-alt-delor
Apr 16 at 9:42
Are you working for Toyota in Japan?
– ctrl-alt-delor
Apr 16 at 8:58
Are you working for Toyota in Japan?
– ctrl-alt-delor
Apr 16 at 8:58
The first odd thing I see (though I don't think it will break anything) is 3 network adaptors connected to the same network.
– ctrl-alt-delor
Apr 16 at 9:02
The first odd thing I see (though I don't think it will break anything) is 3 network adaptors connected to the same network.
– ctrl-alt-delor
Apr 16 at 9:02
I am indeed working in Japan. All adaptors are on the same motherboard, that is a feature of it. So, I think they all should be connected to the same network. Anyway, I need only one, so if there is a way to disable others - tell me!
– Ivan Lobzenko
Apr 16 at 9:15
I am indeed working in Japan. All adaptors are on the same motherboard, that is a feature of it. So, I think they all should be connected to the same network. Anyway, I need only one, so if there is a way to disable others - tell me!
– Ivan Lobzenko
Apr 16 at 9:15
By the way, can you briefly tell me how do you know my location from the data I shared?
– Ivan Lobzenko
Apr 16 at 9:18
By the way, can you briefly tell me how do you know my location from the data I shared?
– Ivan Lobzenko
Apr 16 at 9:18
I was checking that you were not using someone else's (Toyota Japan) IP address (as this could cause network problems). You have multiple adaptors, so that you can connect them to different networks. To disable two of them, unplug them. I up-voted, and see no reason for a down-vote. By the way, do you have DHCP on your network, it will help a lot.
– ctrl-alt-delor
Apr 16 at 9:42
I was checking that you were not using someone else's (Toyota Japan) IP address (as this could cause network problems). You have multiple adaptors, so that you can connect them to different networks. To disable two of them, unplug them. I up-voted, and see no reason for a down-vote. By the way, do you have DHCP on your network, it will help a lot.
– ctrl-alt-delor
Apr 16 at 9:42
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f512710%2fcentos-7-ip-addresses-in-ifconfig-and-in-network-script-are-different%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f512710%2fcentos-7-ip-addresses-in-ifconfig-and-in-network-script-are-different%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you working for Toyota in Japan?
– ctrl-alt-delor
Apr 16 at 8:58
The first odd thing I see (though I don't think it will break anything) is 3 network adaptors connected to the same network.
– ctrl-alt-delor
Apr 16 at 9:02
I am indeed working in Japan. All adaptors are on the same motherboard, that is a feature of it. So, I think they all should be connected to the same network. Anyway, I need only one, so if there is a way to disable others - tell me!
– Ivan Lobzenko
Apr 16 at 9:15
By the way, can you briefly tell me how do you know my location from the data I shared?
– Ivan Lobzenko
Apr 16 at 9:18
I was checking that you were not using someone else's (Toyota Japan) IP address (as this could cause network problems). You have multiple adaptors, so that you can connect them to different networks. To disable two of them, unplug them. I up-voted, and see no reason for a down-vote. By the way, do you have DHCP on your network, it will help a lot.
– ctrl-alt-delor
Apr 16 at 9:42