LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2018, 09:31 AM   #1
turay
LQ Newbie
 
Registered: Sep 2017
Posts: 22

Rep: Reputation: Disabled
Configure a network interface (ifconfig)?


I can't understand (Configure a network interface).
Is there is a tutorial?
 
Old 02-09-2018, 10:11 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
By this point you should have taken the time to review some of the information on the LQ Site FAQ to help you with asking more effective questions. Please do so and improve the question you've asked.
 
1 members found this post helpful.
Old 02-09-2018, 10:24 AM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
like which type cat5, wifi, modem etc... type card you're using, is it being seen by system, if that is relevant only because it is not being seen, etc..
 
Old 02-10-2018, 04:54 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
$ ifconfig eth0 192.168.1.1
 
Old 02-10-2018, 05:50 PM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
It's better to use your distribution network setting method because ifconfig settings are lost on next system boot
 
Old 02-10-2018, 06:09 PM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
# dhclient -4 -v eth0

Depending on your networking setup. For DHCP-less systems more like this:

# ifconfig -a
# ifconfig eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.2.255 mtu 1496 up
# route add default gw 192.168.1.1
# ping -c 4 8.8.8.8

Although modern tools (ip) would look more like:

# ip link show
# ip link set eth0 up mtu 1496
# ip addr add 192.168.1.2/24 dev eth0
# ip route add default via 192.168.1.1 dev eth0
# ping -c 4 8.8.8.8

YMMV
 
Old 02-10-2018, 08:24 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,328
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
There are many tutorials. Try doing a web search for "[distro name] configure network."
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure customized network interface names Vaurine Red Hat 1 12-13-2017 02:35 AM
[SOLVED] Network interface is not shown in ifconfig command mahmoodn CentOS 9 04-13-2016 05:55 PM
configure the network interface under the Owner (not ROOT) wadhah102 Linux - Networking 6 04-25-2011 04:01 AM
Getting IP address for a network interface through the filesystem, not ifconfig nachosmith Linux - Networking 2 02-26-2007 02:55 AM
second ethernet interface will not configure using ifconfig akay Linux - Hardware 0 12-14-2004 06:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration