LinuxQuestions.org
Help answer threads with 0 replies.
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 04-07-2015, 01:36 AM   #1
kkr436
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Rep: Reputation: Disabled
Assign Static IP address with the following requirements


Hi,
How to assign the static ip address with the following requirement.

ip address 192.168.1.100 and sub net mask is 255.255.255.0 and dns 192.168.1.0 .there is no gateway ip address ?
What is the meaning of the 192.168.1.0 ?
 
Old 04-07-2015, 01:42 AM   #2
Rezney
LQ Newbie
 
Registered: Apr 2015
Posts: 16

Rep: Reputation: 1
Hi,
192.168.1.0 is a network address it cant be DNS.
 
Old 04-07-2015, 02:12 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
you may find this useful: http://computer.howstuffworks.com/in...uestion549.htm
 
Old 04-07-2015, 10:55 PM   #4
sravanth.svk
LQ Newbie
 
Registered: May 2006
Posts: 25

Rep: Reputation: 0
Hi Kkr,

below is the question similar to yours
http://www.linuxquestions.org/questi...ip-4175538962/
this would be helpful
 
Old 04-14-2015, 04:48 AM   #5
Bruce783
LQ Newbie
 
Registered: Apr 2015
Location: Kommetjie, Cape Town, ZA
Distribution: Gentoo
Posts: 11

Rep: Reputation: Disabled
Assuming eth0 represents the Ethernet interface that is connected to your local network, you can use the following to temporary configure your system to connect to the network:

Code:
ifconfig eth0 192.168.1.100 netmask 255.255.255.0 up
Maybe you have a router interface configured at 192.168.1.1/24. Use this address as the gateway and check if you can send traffic to remote computers:

Code:
route add default gw 192.168.1.1
Code:
ping -c 1 8.8.8.8
Finally, your DNS name server address is invalid. You can use Google's public DNS name servers:

Code:
echo "nameserver 8.8.8.8" >> /etc/resolv.conf && echo "nameserver 8.8.4.4" >> /etc/resolv.conf
You should try to get a better understanding of your network...
 
1 members found this post helpful.
Old 04-14-2015, 02:17 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
You need to tell us what OS/version you're running in order for anybody to help you.
 
  


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
Program to assign globa lIPv6 address and bind() to the previously assigned address. mwnn Linux - Networking 2 10-07-2010 02:29 AM
How do I assign a static IP address to a DHCP server? Cyberman Linux - Networking 6 01-29-2010 03:47 PM
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Assign Debian Static IP address - How? murfman89 Linux - Networking 3 11-02-2006 03:17 AM
Can't assign a static IPv6 address guzo Linux - Networking 0 02-11-2005 06:22 AM

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

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