ip a

Address information is displayed for each network device.
[vagrant@localhost public]$ ip a
1: lo: mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:40:17:62 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
inet6 fe80::a00:27ff:fe40:1762/64 scope link
valid_lft forever preferred_lft forever
3: eth1: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:65:e0:5c brd ff:ff:ff:ff:ff:ff
inet 192.168.33.10/24 brd 192.168.33.255 scope global eth1
inet6 fe80::a00:27ff:fe65:e05c/64 scope link
valid_lft forever preferred_lft forever

[vagrant@localhost public]$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
[vagrant@localhost public]$ rails -v
bash: rails: コマンドが見つかりません
[vagrant@localhost public]$ git –version
git version 1.7.1
[vagrant@localhost public]$ psql –version
bash: psql: コマンドが見つかりません

railsと、psqlのインストールが必要か。
[vagrant@localhost ~]$ gem update –system

gem install rails
[vagrant@localhost ~]$ gem install bundler
Fetching bundler-2.0.2.gem
bundler’s executable “bundle” conflicts with /home/vagrant/.rbenv/versions/2.3.1/bin/bundle
Overwrite the executable? [yN] y
Successfully installed bundler-2.0.2
Parsing documentation for bundler-2.0.2
Installing ri documentation for bundler-2.0.2
Done installing documentation for bundler after 4 seconds
1 gem installed
[vagrant@localhost ~]$ rails -v
Rails 5.2.3