ifconfig seemingly disagrees with Centos Network Connections preference [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
My Centos VirtualBox currently has no network connection and (as far as I can tell) no IPv4 address.
The GUI Network Connections preference box lists a single configuration, which I manually renamed from "barret" to "eth1" thinking that could solve some problems. The eth1 configuration has an IPv4 address and IPV6s setting on "Ignore". The Connect automatically box is checked. In the list of configurations, under "Last Used", it says "6 days ago." There's no apparent way to instruct it to start using eth1 now.
In terminal, if I run the command ifconfig by itself, this is the full output.
Sorry it's a picture, I seem to have lost the shared clipboard feature.

You shouldn't be using ifconfig anymore for multiple reasons (unmaintained, known issues, superseded by superior tools, etc.). I think it's rather likely to be an ifconfig issue.
See also:
Deprecated Linux networking commands and their replacements
iproute2: Life after ifconfig
ifconfig sucks

Related

Connecting veth directly to physical interface [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 months ago.
Improve this question
I was wondering is it possible to create a veth interface and connect it directly to physical interface of NIC? I see most of the online solutions using bridges, however I am curious if it would be possible to bypass them for simple connection.
These are the some commands I tried to achieve this, but received error:
sudo ip link add veth1 type veth
sudo ip link set veth1 master ens3f0np0
(ens3f0np0 being physical interface)
Error I received after second command was: RTNETLINK answers: Operation not supported
It seems that MACVLAN would be solution needed for this scenario.
Following is a helpful link:
Red Hat MACVLAN explanation

How can I change the ip address of my network info using terminal? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
when I put this in the terminal
ifconfig eth0 69.69.69.69
the ip address in the terminal change but in the user interface not, I mean
initial state
my ip is 192.168.10.2
then a put in the terminal
ifconfig eth0 69.69.69.69
and this happens
terminal
properties
As we can see the properties didn't change.
what can I do for change that properties using the terminal or a bash?
You are probably using a Linux distribution that uses the NetworkManager daemon, and during installation it decided that eth0 should be configured via DHCP. So every time you manually setup its IP not using it (from a terminal in your case), NetworkManager will set it up again without noticing you within a few seconds or minutes.
To check if you have indeed NetworkManager running and managing eth0 setup, issue:
ps aux | grep -i networkmanager
If it is indeed running, look for more info about it, from Ubuntu for instance:
https://help.ubuntu.com/community/NetworkManager
...and then google around for "network manager manual setup ip".
PS:
I hate NetworkManager with a deep passion, gave up using it years ago and always uninstall it, managing my interfaces manually and/or the good old /etc/network/interfaces way. Noticeably (in my case) it can be a pure nuisance when multihoming and changing the interfaceS setup frequently. So if this is indeed your problem (90% sure) I can't help you much more with it. NetworkManager is good at managing one interface at a time, with one configuration (ex static or DHCP) for each interface. This satisfy 95% of user cases. But not mine.
i have try this in my computer and i have success
ifconfig eth0 192.168.218.110
if you want to chang the /etc/sysconfig/network-scripts/ifcfg-eth0 to chang the ip.
you can use vim edit chang thhis line:IPADDR=192.168.218.111

Raspberry Pi 2: routing table has no the specified gateway [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have this routing table:
I used SSH to be able to use my Raspberry Pi on my laptop screen. Everything was fine until I opened my browser and wanted to ping Google in the terminal. I can't, though.
When I try to ping 8.8.8.8 (Google's nameserver), I get the message below the routing table in the image above. But the strange thing is, when I run SSH with PuTTY on a different laptop, the Internet connection is fine. So probably the problem is on my laptop.
How can I fix this issue?
Seems like you are using 192.168.1.1 as a gateway, yet you have configured 192.168.137.0/24 as the network.
You should either try to configure the default gateway to - perhaps - 192.168.137.1 or your IP address to 192.168.1.x.
An ifconfig output would be handy.
Edit:
Add default gateway:
route add default gw 192.168.137.1
You might also need to remove current default gateway(s).

Ifconfig doesn't provide any Details on Kali Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Folks,
I have Kali linux running on VM machine..there are 2 interfaces configured on this machine..1 interface is configured as "share with my Mac" and the other interface is configured as "Private to Mac".And i believe "private to Mac" option will allow me to connect my VM linux machine to the local machine.... ifconfig command doesn't show any output. i have manually configured the IP address to both interface by editing vi /etc/network/interfaces and restarted the network services using the command "/etc/init.d/networking restart"...but still ifconfig doesn't give any result....
Actually i want to communicate on port ssh from my local machine to the linux vm machine..since the machines do not communicate each other.i am not able to work anymore..Can someone please have a look in this issue and let me know what changes are required to complete my requirement...
Have you tried sudo ifconfig ? If it doesn't work the problem could be the drivers of your network card. I'm not sure this will works but you can watch this tutorial How to install network card to Kali

Where to configure network options [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
With most Linux/Unix you have the ability to configure, for example, DNS servers in 2 places. You can set it on the network interface configuration or you can set it in the traditional resolv.conf.
Staying with DNS, most distros recommend configuring it via the interface configuration script which is different among distros. Like Ubuntu uses /etc/network/interfaces and RHEL uses /etc/sysconfig/network-scripts/.
Why is this the recommended location when resolv.conf would be much more universal?
Also I find it troubling placing anything other than Ethernet and IP options (layer 2 & layer 3 options) in the interface configuration. Everything else ( like DNS, Hostname, NTP, ...) belongs in its own /etc location in my opinion.
But this has sparked a debate among my colleagues and I would like more answers.
Debian has some explanations here: https://wiki.debian.org/NetworkConfiguration section "Defining the (DNS) Nameservers".
Basically, the /etc/resolv.conf should not be used in modern Desktop Linux distributives because several programs may overwrite it, if installed and active: resolvconf, network-manager and dhcp clients.
But on the server installation, there can be no such program and no DHCP. In such cases you can manually edit resolv.conf.

Resources