Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Not able to assign ip add to eno1 interface
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 457
Location: India

PostPosted: Wed Mar 30, 2016 10:48 am    Post subject: Not able to assign ip add to eno1 interface Reply with quote

Hi Experts,

Kernel - 4.1.15-gentoo-r1

I am not sure what exactly I am missing. I am trying to assing ip to my eno1 interface however it gives the below error :-

Quote:
ifconfig eno1 192.168.1.12 netmask 255.255.255.0
SIOCSIFFLAGS: No such file or directory.


Quote:
cat /sys/class/net

Here I can see eno1, eno2, eno3 and eno4 interfaces along with lo and sit0 interface.

lspci result :-

Quote:
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
Subsystem: Dell PowerEdge R610 BCM5709 Gigabit Ethernet


Please suggest as to what I am missing here. Appreciate all your help in advance.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Mar 30, 2016 11:17 am    Post subject: Reply with quote

manu_leo ...

probably firmware ... is sys-kernel/linux-firmware installed?

BTW, net-tools (and so ifconfig) has effectively been replaced by iproute2

Code:
# ip link set dev eno1 up
# ip addr add 192.168.1.12/24 + brd dev eno1
# ip route add <gateway>
# ip addr show eno1

... that said, any reason you're not using netifrc?

best ... khay
Back to top
View user's profile Send private message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 457
Location: India

PostPosted: Thu Mar 31, 2016 4:31 am    Post subject: Reply with quote

Thanks Khayyam, appreciate that and it fixed the issue.

I am seriously not aware about this new change in the commands. Can you please guide me to some online links to get a feel of this.

Thanks again.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2659

PostPosted: Thu Mar 31, 2016 5:29 am    Post subject: Reply with quote

Try https://wiki.gentoo.org/wiki/Iproute2
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Mar 31, 2016 5:55 am    Post subject: Reply with quote

manu_leo wrote:
I am seriously not aware about this new change in the commands. Can you please guide me to some online links to get a feel of this.

manu_leo ... its not really something new, or something you necessarily need to worry about, net-tools has been slowly depreciated in favor of iproute2 for some time, it was added to @system in the last year, and is the prefered tool where netifrc is concerned. Generally, users are not configuring interfaces manually, so no one need pay it any attention.

If you wanted to familiarise yourself with its syntax then, besides the link to the wiki provided by charles17, you could take a look at the iproute2 utility suite howto and iproute2 examples.

You're welcome & best ... khay
Back to top
View user's profile Send private message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 457
Location: India

PostPosted: Tue May 03, 2016 10:44 am    Post subject: [RESOLVED]Re: Not able to assign ip add to eno1 interface Reply with quote

manu_leo wrote:
Hi Experts,

Kernel - 4.1.15-gentoo-r1

I am not sure what exactly I am missing. I am trying to assing ip to my eno1 interface however it gives the below error :-

Quote:
ifconfig eno1 192.168.1.12 netmask 255.255.255.0
SIOCSIFFLAGS: No such file or directory.


Quote:
cat /sys/class/net

Here I can see eno1, eno2, eno3 and eno4 interfaces along with lo and sit0 interface.

lspci result :-

Quote:
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
Subsystem: Dell PowerEdge R610 BCM5709 Gigabit Ethernet


Please suggest as to what I am missing here. Appreciate all your help in advance.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum