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 - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-19-2019, 09:55 AM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896

You didn't answer my question.

I don't know what netmasks you are using so assume 255.255.255.0 or /24.

192.168.0.0/24 is a subnetwork and 192.168.10.0/24 is another. Normally they can not talk to each outer without some sort of router/gateway.

Last edited by michaelk; 06-19-2019 at 10:00 AM.
 
Old 06-19-2019, 10:43 AM   #17
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
Both computers are using the same Netmask 255.255.255.0

I can see now I'm going to have to setup both computers on a Fixed IP.

Last edited by mickeyboa; 06-19-2019 at 10:44 AM.
 
Old 06-19-2019, 11:15 AM   #18
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
I want to setup both of my computers with a static IP's , but in etc/network/interfaces the file it is clear,nothing is there.

can someone send me a Static IP Setup file so I can compare and make one for my Fedora and Pi computers.

I have always had problems with setting up Static IP's in Linux.
 
Old 06-19-2019, 01:02 PM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
You can use network manager to set a static ip address without manually editing any configure files.
 
Old 06-19-2019, 01:27 PM   #20
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
Their always changing Fedora and the old ways are just not working.

As I said before setting up a Static IP is not easy.

Michaelk I sure do appreciate your help.

Below is changes I made to /etc/sysconfig/network-scripts/ifcfg-enp2s0 and it not setting up to a Static IP, it goes back to old settings.
I did REBOOT the computer.


[mickey@mickey ~]$ ifconfig
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.102 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::f9fd:e1a4:d882:25ef prefixlen 64 scopeid 0x20<link>
ether 3c:52:82:50:36:f6 txqueuelen 1000 (Ethernet)
RX packets 75 bytes 12453 (12.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 61 bytes 8547 (8.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0



Below is the changes I made;

[mickey@mickey ~]$ su
Password:
[root@mickey mickey]# cat /etc/sysconfig/network-scripts/ifcfg-enp2s0
BOOTPROTO=none
IPADDR=192.168.10.9
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
DNS1=192.168.0.1
DNS2=8.8.8.8
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=enp2s0
Device=enp2s0
ONBOOT=yes
 
Old 06-19-2019, 01:52 PM   #21
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Original Poster
Rep: Reputation: 68
This is crazy, NetworkManager is Started, Enabled, How do you use it.

I went Fedora website they showed howto install, status ,enable it but not how to use it.
I did reboot the computer.
 
Old 06-19-2019, 02:14 PM   #22
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Caveat... I have not played with Fedora in awhile but you typically right click on the network applet on the menu/task bar and select edit connections.
 
Old 06-19-2019, 02:21 PM   #23
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by michaelk View Post
Caveat... I have not played with Fedora in awhile but you typically right click on the network applet on the menu/task bar and select edit connections.
That's how it works on my CentOS7.
 
Old 06-20-2019, 04:26 PM   #24
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by mickeyboa View Post
This is crazy, NetworkManager is Started, Enabled, How do you use it.

I went Fedora website they showed howto install, status ,enable it but not how to use it.
I did reboot the computer.
Try https://docs.fedoraproject.org/en-US...ide/index.html.
 
Old 10-13-2019, 08:36 PM   #25
zer0sig
LQ Newbie
 
Registered: Sep 2017
Location: tech capital of the southeast USA
Distribution: CentOS, Fedora, Armbian, RHEL, Kali, MATE
Posts: 5

Rep: Reputation: Disabled
mickeyboa,
You didn't comment as to whether you had any more questions or solved the problem, but just to note, if you have your host on a /24 (netmask NETMASK=255.255.255.0) then you are going to want your gateway on the same /24 - so both hosts on 192.168.0.x IPs, gateway on a 192.168.10.x IP, or two separate subnets with a gateway on each - or you could make it a /20 (NETMASK=255.255.240.0) and then the 192.168.0 and 192.168.10 will be on the same subnet.

Hope you got this straight. I sometimes hit small learning curve issue when things in Linux are changed, and I use it all the time. Things have become dramatically more complex (though often easier to use fortunately)
 
  


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 log ssh activity in /var/log/ssh/ssh*.log MrUmunhum Linux - Server 3 11-02-2011 02:25 AM
Fedora 10/unable to ssh out from box to remote host (SSH within LAN ok) huskeypm Linux - Networking 3 04-14-2009 07:37 PM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
setting up an ssh soxy or local ssh tunnel from within an ssh soxy Mangenius Linux - Networking 0 03-05-2007 03:15 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:26 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