LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2016, 09:52 AM   #1
rocaflqu
LQ Newbie
 
Registered: Jun 2016
Posts: 11

Rep: Reputation: Disabled
Network no Connect


Hi guys, i dont have connect with the red 10.0.0.0/24 and i dont know why.

Centos 7.1

file /etc/sysconfig/network-scripts/ifcfg-em1

DEVICE=em1
BOOTPROTO=static
IPADDR=10.0.0.214
NETMASK=255.255.255.0
NETWORK=10.0.0.0
ONBOOT=yes
GATEWAY=10.0.0.4
DNS1=10.0.0.100

file /etcsysconfig/network

NETWORKING=yes

file /etc/resolv.conf

nameserver 10.0.0.100

Command

# route add default gw 10.0.0.4 em1
# service network restart
# ifdown em1
# ifup em1

#route -n

Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 em1
0.0.0.0 10.0.0.4 0.0.0.0 UG 0 0 0 em1

I dont have ping to 10.0.0.4 or any ip in the red 10.0.0.0

Help please, thanks friends.
 
Old 06-01-2016, 10:23 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
post the ouput of the following commnad:

Code:
ifconfig -a
 
Old 06-01-2016, 10:34 AM   #3
rocaflqu
LQ Newbie
 
Registered: Jun 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
ifconfig -a

http://postimg.org/image/f5d5170ff/

Thanks..
 
Old 06-01-2016, 11:11 AM   #4
rocaflqu
LQ Newbie
 
Registered: Jun 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Solved.

Problem:

Before the server was VM, then the swith config are switchport mode trunk, but now the server is a centos 7.1

Solved:

Change switch config in switchport mode access vlan x, and it's alive.


Thanks, friends.
 
  


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
[SOLVED] Installed Ubunto 16.04 on machine. The network work, can ping my router and connect to LAN. Can't connect to internet phantom21 Linux - Networking 7 04-30-2016 01:00 AM
[SOLVED] Puppy linux network tools won't connect on boot, though I can connect manually pierssnell Linux - Newbie 3 01-12-2015 01:28 PM
Fedora 13 Network Interface fails to connect after starting network manager crazy eddy Linux - Networking 2 06-15-2010 09:47 AM
Network: Able to connect to encrypted, but unable to connect to open. WalterGL Linux - Newbie 1 09-16-2009 04:17 PM
Unable to connect to wifi network with network manager. Poss authorization issue openSauce Linux - Networking 14 12-13-2008 10:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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